Skip to content

Commit c90b34c

Browse files
committed
Merge pull request NARKOZ#13 from h3xx/patch-1
Use variable $USER variable
2 parents 87da07c + 934e4de commit c90b34c

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)