hangover: same grep stuff

This commit is contained in:
Mingye Wang 2020-03-09 16:09:09 +08:00 committed by GitHub
parent 0b066446d6
commit dff194577e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
#!/bin/bash -e
# Exit early if any session with my username is found
if who | grep -wq "^$USER"; then
if who -q | grep -wqF "$USER"; then
exit
fi