This commit is contained in:
Heavybullets8 2022-07-25 21:47:14 -06:00
parent 02aa8b6c22
commit 7f41fd1d8d

View File

@ -52,10 +52,10 @@ do
echo -e "Invalid Option \"-$OPTARG\"\n" && help echo -e "Invalid Option \"-$OPTARG\"\n" && help
exit exit
;; ;;
:) # :)
echo -e "Option: \"-$OPTARG\" requires an argument\n" && help # echo -e "Option: \"-$OPTARG\" requires an argument\n" && help
exit # exit
;; # ;;
b) b)
re='^[0-9]+$' re='^[0-9]+$'
number_of_backups=$OPTARG number_of_backups=$OPTARG
@ -66,6 +66,7 @@ do
rollback="true" rollback="true"
;; ;;
i) i)
[[ -z "$OPTARG" ]] && echo "\"-i\" requires an argument" && exit
ignore+=("$OPTARG") ignore+=("$OPTARG")
;; ;;
t) t)
@ -88,10 +89,6 @@ do
p) p)
prune="true" prune="true"
;; ;;
R)
rollback="true"
echo "WARNING: -R is being transisitioned to -r, this is due to a refactor in the script. Please Make the change ASAP!"
;;
v) v)
verbose="true" verbose="true"
;; ;;