Skip to content

Commit

Permalink
revert back to original
Browse files Browse the repository at this point in the history
  • Loading branch information
Will-Hellinger authored Mar 26, 2024
1 parent 16ceb02 commit 8324791
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,10 @@ server_info() {
echo -e "Welcome to RIT Servers!"
echo -e "Current time is: $(date)"

if [ "$online_user_count" -eq 0 ]; then
if [ "$online_user_count" -eq 1 ] && [[ $online_users == *"$current_user"* ]]; then
echo -e "There is 1 user\e[32m online\e[0m - You!"
else if [ "$online_user_count" -eq 1 ]; then
echo -e "There is $online_user_count user\e[32m online\e[0m!"
else
echo -e "There are $online_user_count users\e[32m online\e[0m!"
echo -e "There are $online_user_count user(s)\e[32m online\e[0m!"
fi
}

Expand Down

0 comments on commit 8324791

Please sign in to comment.