summaryrefslogtreecommitdiffstats
path: root/src/cmd.sh
diff options
context:
space:
mode:
authorP. 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)
commit15c51e3d6e9c7b31a82e74988b3929ff0eb0f27a (patch)
tree747c851f08f854a5923a8f5646fa07afa001eb56 /src/cmd.sh
parent7831304e08e5a6092e4df7343f8e7de69decb69c (diff)
Add explicit returns to some functions
Diffstat (limited to 'src/cmd.sh')
-rw-r--r--src/cmd.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd.sh b/src/cmd.sh
index 9afad7c..a42744d 100644
--- a/src/cmd.sh
+++ b/src/cmd.sh
@@ -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
}