diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2018-07-02 16:07:30 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2018-07-02 16:07:30 (EDT) |
commit | 6f5c4a4487c647434bee9a7e049bd085789ba2a8 (patch) | |
tree | b45541b46a88bbb7aeb77a1deb510065b21fefbd /src/cmd.sh | |
parent | 0dc8e90ca587f39b9c9a2720ae4550854a5c83e4 (diff) |
is_cmd(): Replace pipeline and external commands with case
Diffstat (limited to 'src/cmd.sh')
-rw-r--r-- | src/cmd.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 ${?} } |