From 54f27f04d4783ce25e4e760437c0dab235d0c7c8 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 31 Jul 2020 14:09:50 +0200 Subject: scripts/systemctl: Improbe logic of automatic systemctl status --- scripts/systemctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/systemctl b/scripts/systemctl index aadf764..68ea3ef 100755 --- a/scripts/systemctl +++ b/scripts/systemctl @@ -46,7 +46,7 @@ for service in "$@"; do one_ok=1 else one_fail=1 - [[ "$op" != "status" && "$op" != "journal" ]] && systemctl status "$service" + [[ "$op" = "start" || "$op" = "restart" ]] && systemctl status "$service" fi else echo "Operation '$op' not allowed on '$service'" >&2 -- cgit v1.2.3-55-g7522