18 lines
339 B
Bash
Executable file
18 lines
339 B
Bash
Executable file
#!/bin/bash
|
|
|
|
|
|
shopt -s extglob # "Shell option set extglob" https://www.linuxjournal.com/content/bash-extended-globbing
|
|
|
|
set -f # "Disable file name generation (globbing)."
|
|
|
|
DELETEBACKUP=$1
|
|
|
|
set +f
|
|
FLASHBACKDIR="/Library/FlashBack"
|
|
DELETELOCATION=$FLASHBACKDIR/Backups/$DELETEBACKUP
|
|
|
|
# COPY BACKUP TO SYSTEM
|
|
|
|
rm -r $DELETELOCATION
|
|
|
|
exit 0
|