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