Commit 49d43244 authored by Michael Hanselmann's avatar Michael Hanselmann

daemon-util: Use “return” instead of “exit” in all functions

This is important if they're called directly within daemon-util.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 2250afb3
......@@ -121,7 +121,7 @@ is_daemon_name() {
check() {
if [[ "$#" -lt 1 ]]; then
echo 'Missing daemon name.' >&2
exit 1
return 1
fi
local name="$1"; shift
......@@ -134,7 +134,7 @@ check() {
start() {
if [[ "$#" -lt 1 ]]; then
echo 'Missing daemon name.' >&2
exit 1
return 1
fi
local name="$1"; shift
......@@ -155,7 +155,7 @@ start() {
stop() {
if [[ "$#" -lt 1 ]]; then
echo 'Missing daemon name.' >&2
exit 1
return 1
fi
local name="$1"; shift
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment