Expand shortArgs correctly

This commit is contained in:
Michael Vines 2019-05-18 18:59:01 -07:00
parent 06eb2364f2
commit cbebc7a80c
No known key found for this signature in database
GPG Key ID: 33F4FDEC4E0E88BD
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ while [[ -n $1 ]]; do
fi
done
while getopts "h?p:Pn:c:t:gG:a:Dd:rusxz:p:C:Sfew" opt "${shortArgs[*]}"; do
while getopts "h?p:Pn:c:t:gG:a:Dd:rusxz:p:C:Sfew" opt "${shortArgs[@]}"; do
case $opt in
h | \?)
usage

View File

@ -106,7 +106,7 @@ while [[ -n $1 ]]; do
fi
done
while getopts "h?T:t:o:f:rD:i:c:F" opt "${shortArgs[*]}"; do
while getopts "h?T:t:o:f:rD:i:c:F" opt "${shortArgs[@]}"; do
case $opt in
h | \?)
usage