summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2017-07-22 15:29:09 (EDT)
committer P. J. McDermott <pj@pehjota.net>2017-07-22 15:29:09 (EDT)
commit6ecdcfb760811b5f1d7262b224768688e54e4b2c (patch)
treeac4f4f1fa34daaa42a6b125be4cb0dcb79e7d284 /src
parent57f67e1dc1b1c8ec7e251138ab1d355b7b9f3bd1 (diff)
is_cmd(): Update printf call
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 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()