2
0
mirror of https://github.com/narkoz/hacker-scripts synced 2025-08-23 02:47:14 +00:00

Merge pull request #13 from h3xx/patch-1

Use variable $USER variable
This commit is contained in:
Nihad Abbasov 2015-11-24 03:29:46 +04:00
commit c90b34c5c5

View File

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