From 682ead72a71ca5ca68d2ad34a4f4c01cfabdb097 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Mon, 25 Jul 2022 23:53:45 -0600 Subject: [PATCH] ignore --- heavy_script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/heavy_script.sh b/heavy_script.sh index a452cbd8..49786818 100644 --- a/heavy_script.sh +++ b/heavy_script.sh @@ -66,7 +66,7 @@ do eval nextopt=${!OPTIND} # existing or starting with dash? if [[ -n $nextopt && $nextopt != -* ]] ; then - OPTIND=$((OPTIND + 1)) + OPTIND=$((OPTIND++)) ignore+=("$nextopt") else echo "Option: \"-i\" requires an argument"