2
0
mirror of https://github.com/narkoz/hacker-scripts synced 2025-09-01 15:15:14 +00:00

use USER env variable

issue #13
This commit is contained in:
Nihad Abbasov
2015-11-24 03:46:12 +04:00
parent a4c4c5ec2c
commit e031c73e3a
5 changed files with 9 additions and 9 deletions

View File

@@ -7,7 +7,7 @@ if [ "$DAYOFWEEK" -eq 6 ] || [ "$DAYOFWEEK" -eq 7 ]; then
exit
fi
# Exit early if any session with my_username is found
# Exit early if any session with my username is found
if who | grep -wq $USER; then
exit
fi