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:
parent
6945900140
commit
dce232c5c9
|
@ -49,13 +49,13 @@ if [ "$#" != 0 ]; then
|
||||||
do
|
do
|
||||||
case "$it" in
|
case "$it" in
|
||||||
-p | --printresult | --parallel | --target=* | --newlines=on | --newlines=off )
|
-p | --printresult | --parallel | --target=* | --newlines=on | --newlines=off )
|
||||||
if test "${arguments#*$it}" != "$arguments"; then
|
if [ "${arguments#*$it}" != "$arguments" ] && [ "${arguments%*-$it}" = "${arguments#*-$it}" ]; then
|
||||||
usageExit
|
usageExit
|
||||||
fi ;;
|
fi ;;
|
||||||
-t | --text )
|
-t | --text )
|
||||||
text_provided=true ;;
|
text_provided=true ;;
|
||||||
* )
|
* )
|
||||||
if [ $text_provided = true ] || test "${it%*.ybcon}" != "$it"; then
|
if [ $text_provided = true ] || [ "${it%*.ybcon}" != "$it" ]; then
|
||||||
run=true
|
run=true
|
||||||
else
|
else
|
||||||
usageExit
|
usageExit
|
||||||
|
|
Loading…
Reference in New Issue