From 7f41fd1d8d50deaa6e06a6ddee22256e0550df7a Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Mon, 25 Jul 2022 21:47:14 -0600 Subject: [PATCH] test --- heavy_script.sh | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/heavy_script.sh b/heavy_script.sh index 905e50de..d0df8bed 100644 --- a/heavy_script.sh +++ b/heavy_script.sh @@ -52,10 +52,10 @@ do echo -e "Invalid Option \"-$OPTARG\"\n" && help exit ;; - :) - echo -e "Option: \"-$OPTARG\" requires an argument\n" && help - exit - ;; + # :) + # echo -e "Option: \"-$OPTARG\" requires an argument\n" && help + # exit + # ;; b) re='^[0-9]+$' number_of_backups=$OPTARG @@ -66,6 +66,7 @@ do rollback="true" ;; i) + [[ -z "$OPTARG" ]] && echo "\"-i\" requires an argument" && exit ignore+=("$OPTARG") ;; t) @@ -88,10 +89,6 @@ do p) 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) verbose="true" ;;