From 84b2d8812c96e034e26e2337f41d225c9c941f6f Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Thu, 8 Jul 2021 12:57:33 +0200 Subject: [PATCH] Fix the condition introduced in previous commits. --- scripts/ybcon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ybcon b/scripts/ybcon index c895145..f9a79b1 100755 --- a/scripts/ybcon +++ b/scripts/ybcon @@ -67,7 +67,7 @@ if [ "$#" != 0 ]; then usageExit ;; esac done - if ! test "$args" = "*.ybcon*"; then usageExit; fi + if test "${args#*".ybcon"}" = "$args" ; then usageExit; fi fi else usage false