Fix different arguments being treated as duplicates because of short versions in the shell wrapper script

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
Username404 2022-04-10 00:36:00 +02:00
parent 6945900140
commit dce232c5c9
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 2 additions and 2 deletions

View File

@ -49,13 +49,13 @@ if [ "$#" != 0 ]; then
do
case "$it" in
-p | --printresult | --parallel | --target=* | --newlines=on | --newlines=off )
if test "${arguments#*$it}" != "$arguments"; then
if [ "${arguments#*$it}" != "$arguments" ] && [ "${arguments%*-$it}" = "${arguments#*-$it}" ]; then
usageExit
fi ;;
-t | --text )
text_provided=true ;;
* )
if [ $text_provided = true ] || test "${it%*.ybcon}" != "$it"; then
if [ $text_provided = true ] || [ "${it%*.ybcon}" != "$it" ]; then
run=true
else
usageExit