diff --git a/hangover.sh b/hangover.sh index d3ab4c8..c14d9fb 100755 --- a/hangover.sh +++ b/hangover.sh @@ -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