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 done
LOGINS=$(who -u | grep pts\/ | wc -l) LOGINS=$(who -u | grep pts\/ | wc -l)
if ! [[ "$LOGINS" =~ "^0$" ]] if [[ "$LOGINS" -gt 0 ]]
then then
echo "ABORT: $LOGINS user logins" echo "ABORT: $LOGINS user logins"
exit 0 exit 0