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
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue