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}
# 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