From eec9afa5dffdca56ead282df07d48fd9a7bb2282 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Mon, 25 Jul 2022 21:55:46 -0600 Subject: [PATCH] test --- heavy_script.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/heavy_script.sh b/heavy_script.sh index 5ee2afcc..1edaf814 100644 --- a/heavy_script.sh +++ b/heavy_script.sh @@ -19,7 +19,7 @@ source functions/update_apps.sh # Parse script options -while getopts ":si:rb:t:uUpSRv-:" opt +while getopts ":sii:rb:t:uUpSRv-:" opt do case $opt in -) @@ -67,7 +67,7 @@ do ;; i) ignore+=("$OPTARG") - [[ -z "$ignore" ]] && echo "\"-i\" requires an argument" && exit + [[ -z "$OPTARG" ]] && echo "\"-i\" requires an argument" && exit ;; t) re='^[0-9]+$'