This commit is contained in:
Heavybullets8 2022-07-25 22:37:21 -06:00
parent c3fcc5a10d
commit 3547a67f01

View File

@ -87,8 +87,8 @@ do
eval nextopt=${!OPTIND} eval nextopt=${!OPTIND}
# existing or starting with dash? # existing or starting with dash?
if [[ -n $nextopt && $nextopt != -* ]] ; then if [[ -n $nextopt && $nextopt != -* ]] ; then
OPTIND=$((OPTIND + 1)) OPTIND=$((OPTIND++))
update_limit="$OPTARG" update_limit="$nextopt"
else else
update_limit=1 update_limit=1
fi fi
@ -99,8 +99,8 @@ do
eval nextopt=${!OPTIND} eval nextopt=${!OPTIND}
# existing or starting with dash? # existing or starting with dash?
if [[ -n $nextopt && $nextopt != -* ]] ; then if [[ -n $nextopt && $nextopt != -* ]] ; then
OPTIND=$((OPTIND + 1)) OPTIND=$((OPTIND++))
update_limit="$OPTARG" update_limit="$nextopt"
else else
update_limit=1 update_limit=1
fi fi