From 6ecdcfb760811b5f1d7262b224768688e54e4b2c Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 22 Jul 2017 15:29:09 -0400 Subject: is_cmd(): Update printf call --- (limited to 'src') 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() -- cgit v0.9.1