This commit is contained in:
Heavybullets8 2022-07-26 00:04:39 -06:00
parent 682ead72a7
commit 0fde7bf999

View File

@ -66,7 +66,7 @@ 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++)) OPTIND=$((OPTIND + 1))
ignore+=("$nextopt") ignore+=("$nextopt")
else else
echo "Option: \"-i\" requires an argument" echo "Option: \"-i\" requires an argument"
@ -87,7 +87,7 @@ 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++)) OPTIND=$((OPTIND + 1))
update_limit="$nextopt" update_limit="$nextopt"
else else
update_limit=1 update_limit=1
@ -99,7 +99,7 @@ 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++)) OPTIND=$((OPTIND + 1))
update_limit="$nextopt" update_limit="$nextopt"
else else
update_limit=1 update_limit=1