This commit is contained in:
mwiegand 2022-02-12 20:40:14 +01:00
parent df607f0656
commit cf6e716301

View file

@ -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