From 3547a67f0193c9387a6b2935bc4bfda90d54cbb6 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Mon, 25 Jul 2022 22:37:21 -0600 Subject: [PATCH] test --- heavy_script.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/heavy_script.sh b/heavy_script.sh index 82087420..29f90c3e 100644 --- a/heavy_script.sh +++ b/heavy_script.sh @@ -87,8 +87,8 @@ do eval nextopt=${!OPTIND} # existing or starting with dash? if [[ -n $nextopt && $nextopt != -* ]] ; then - OPTIND=$((OPTIND + 1)) - update_limit="$OPTARG" + OPTIND=$((OPTIND++)) + update_limit="$nextopt" else update_limit=1 fi @@ -99,8 +99,8 @@ do eval nextopt=${!OPTIND} # existing or starting with dash? if [[ -n $nextopt && $nextopt != -* ]] ; then - OPTIND=$((OPTIND + 1)) - update_limit="$OPTARG" + OPTIND=$((OPTIND++)) + update_limit="$nextopt" else update_limit=1 fi