Skip to content
Snippets Groups Projects
Commit 7aaccc3c authored by Vermaat's avatar Vermaat
Browse files

More robust double login checking

parent beecdc8f
No related branches found
No related tags found
1 merge request!4More robust double login checking
if [ $(w | grep $LOGNAME | wc -l) -gt 1 ]; then
if [ $(who | grep -cw ^$LOGNAME) -gt 1 ]; then
echo This account is already in use, exiting.
exit
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment