diff options
author | P. J. McDermott <pj@pehjota.net> | 2016-01-18 12:07:41 (EST) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2016-01-18 12:07:41 (EST) |
commit | 15c51e3d6e9c7b31a82e74988b3929ff0eb0f27a (patch) | |
tree | 747c851f08f854a5923a8f5646fa07afa001eb56 /src/cmd.sh | |
parent | 7831304e08e5a6092e4df7343f8e7de69decb69c (diff) |
Add explicit returns to some functions
Diffstat (limited to 'src/cmd.sh')
-rw-r--r-- | src/cmd.sh | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -100,6 +100,8 @@ is_cmd() local cmd="${1}" [ "x$(printf '%s\n' ${cmds} | grep "^${cmd}$")" = "x${cmd}" ] + + return ${?} } run_cmd() @@ -120,4 +122,6 @@ run_cmd() error "$(get_msg 'cmd_not_found')" "${cmd}" return 1 fi + + return 0 } |