diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2019-07-26 12:32:48 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2019-07-26 12:32:48 +0300 |
commit | 17137408d29d004e7ec1512ab7e6b7d30ff28ebe (patch) | |
tree | 85991b6df7fa8f8d49845b48c43038b049b68121 /include/tests_firewalls | |
parent | 8321b986891eae1f928434ea9ac0003ae743ab67 (diff) |
Use IsRunning exit code instead of variable
Diffstat (limited to 'include/tests_firewalls')
-rw-r--r-- | include/tests_firewalls | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/include/tests_firewalls b/include/tests_firewalls index 99a9bc2a..cb08696e 100644 --- a/include/tests_firewalls +++ b/include/tests_firewalls @@ -245,8 +245,7 @@ LogText "Result: no kldstat binary, skipping this part" fi - IsRunning pflogd - if [ ${RUNNING} -eq 1 ]; then + if IsRunning "pflogd"; then LogText "Result: found pflog daemon in process list" Display --indent 4 --text "- Checking pflogd status" --result "ACTIVE" --color GREEN PFFOUND=1 @@ -410,8 +409,7 @@ # Little Snitch Daemon (macOS) LogText "Test: checking process Little Snitch Daemon" - IsRunning --full "Little Snitch Daemon" - if [ ${RUNNING} -eq 1 ]; then + if IsRunning --full "Little Snitch Daemon"; then Display --indent 2 --text "- Checking Little Snitch Daemon" --result "${STATUS_ENABLED}" --color GREEN LogText "Result: Little Snitch found" FOUND=1 @@ -423,8 +421,7 @@ # HandsOff! Daemon (macOS) LogText "Test: checking process HandsOffDaemon" - IsRunning HandsOffDaemon - if [ ${RUNNING} -eq 1 ]; then + if IsRunning "HandsOffDaemon"; then Display --indent 2 --text "- Checking Hands Off! Daemon" --result "${STATUS_ENABLED}" --color GREEN LogText "Result: Hands Off! found" FOUND=1 @@ -436,8 +433,7 @@ # LuLu Daemon (macOS) LogText "Test: checking process LuLu" - IsRunning LuLu - if [ ${RUNNING} -eq 1 ]; then + if IsRunning "LuLu"; then Display --indent 2 --text "- Checking LuLu Daemon" --result "${STATUS_ENABLED}" --color GREEN LogText "Result: LuLu found" FOUND=1 @@ -449,8 +445,7 @@ # Radio Silence (macOS) LogText "Test: checking process Radio Silence" - IsRunning --full "Radio Silence" - if [ ${RUNNING} -eq 1 ]; then + if IsRunning --full "Radio Silence"; then Display --indent 2 --text "- Checking Radio Silence" --result "${STATUS_ENABLED}" --color GREEN LogText "Result: Radio Silence found" FOUND=1 |