Created
July 4, 2020 11:33
-
-
Save sant-sh/c5dd2bbd8188954c0a6ad220a20b5f46 to your computer and use it in GitHub Desktop.
Bua khtm che
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
username="santsah" | |
current_user="$USER" | |
start_time="$(date +%M)" | |
end_time="$(expr $start_time + 1)" | |
while [ "$end_time" > "$start_time" ] | |
do | |
if [[ "$current_user" == "$username" ]] | |
then | |
echo "$username has logged in" | |
exit | |
else | |
echo "$username has not logged in" | |
exit | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Duuur