This commit is contained in:
Heavybullets8 2022-07-25 23:53:45 -06:00
parent 2d0388d9b5
commit 682ead72a7

View File

@ -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"