Skip to content

Commit 934e4de

Browse files
committed
Use variable $USER variable
So anyone can put this in their crontab.
1 parent 8260c7d commit 934e4de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hangover.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if [ "$DAYOFWEEK" -eq 6 ] || [ "$DAYOFWEEK" -eq 7 ]; then
88
fi
99

1010
# Exit early if any session with my_username is found
11-
if who | grep -wq 'my_username'; then
11+
if who | grep -wq $USER; then
1212
exit
1313
fi
1414

0 commit comments

Comments
 (0)