tiny QoL improvement

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
Jack L. Frost 2018-08-07 23:04:35 +03:00
parent e948f6985a
commit d07fd3362b
1 changed files with 3 additions and 1 deletions

4
ssm
View File

@ -945,7 +945,9 @@ fi
# Action!
[[ "$1" ]] && action = "$1"
action || { usage; die 2; }
action || {
flag_reread_service && die 0 # Not a mistake if the service was to be re-read
usage; die 2; }
# Do we have such a function?
if_service_action "$action" || die 17 "Function $action is not defined for $service_name."