summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cmd.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd.sh b/src/cmd.sh
index e50b870..ac84f16 100644
--- a/src/cmd.sh
+++ b/src/cmd.sh
@@ -99,7 +99,7 @@ is_cmd()
{
local cmd="${1}"
- [ "x$(printf '%s\n' ${cmds} | grep "^${cmd}$")" = "x${cmd}" ]
+ case "${cmds}" in *" ${cmd} "*) return 0;; *) return 1;; esac
return ${?}
}