diff --git a/bundles/wol-sleeper/files/suspend_if_idle b/bundles/wol-sleeper/files/suspend_if_idle index c3b50fb..99434d9 100644 --- a/bundles/wol-sleeper/files/suspend_if_idle +++ b/bundles/wol-sleeper/files/suspend_if_idle @@ -22,7 +22,7 @@ do done LOGINS=$(who -u | grep pts\/ | wc -l) -if ! [[ "$LOGINS" =~ "^0$" ]] +if [[ "$LOGINS" -gt 0 ]] then echo "ABORT: $LOGINS user logins" exit 0