summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/cmd.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd.sh b/src/cmd.sh
index de10310..5ec67bf 100644
--- a/src/cmd.sh
+++ b/src/cmd.sh
@@ -96,7 +96,7 @@ is_cmd()
{
local cmd="${1}"
- [ "x$(printf '%s' "${cmds}" | grep "^${cmd}$")" = "x${cmd}" ]
+ [ "x$(printf '%s\n' ${cmds} | grep "^${cmd}$")" = "x${cmd}" ]
}
run_cmd()