diff --git a/usr/local/bin/systemd_check b/usr/local/bin/systemd_check index 8db2f07..8e60a13 100755 --- a/usr/local/bin/systemd_check +++ b/usr/local/bin/systemd_check @@ -85,7 +85,7 @@ function checkService() { RESULT=1; fi else - if [ ! $($ROOT_COMMAND) ] && [ ! $($USER_COMMAND) ]; then + if ! $($ROOT_COMMAND) && ! $($USER_COMMAND); then RESULT=1; fi fi