From dce232c5c949c4ac7f8a116a417362bbb69b1c20 Mon Sep 17 00:00:00 2001 From: Username404 Date: Sun, 10 Apr 2022 00:36:00 +0200 Subject: [PATCH] Fix different arguments being treated as duplicates because of short versions in the shell wrapper script Signed-off-by: Username404 --- scripts/ybcon | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ybcon b/scripts/ybcon index 9b21044..86a6ee8 100755 --- a/scripts/ybcon +++ b/scripts/ybcon @@ -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