aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions b/functions
index 0f333d4..8745a38 100644
--- a/functions
+++ b/functions
@@ -164,7 +164,7 @@ in_array() {
local item
for item in "$@"; do
local c="${item:0:1}"
- if [ "$c" == "!" -o "$c" == "@" ]; then
+ if [ "x$c" = "x@" ]; then
item="${item:1}"
fi
[ "$item" = "$needle" ] && return 0 # Found