From d319b9d01d70e98e138cacf7ce05805b10d0f943 Mon Sep 17 00:00:00 2001 From: dusk Date: Wed, 25 Aug 2021 17:19:32 +0200 Subject: [PATCH] Minor text changes --- pipechat | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) mode change 100644 => 100755 pipechat diff --git a/pipechat b/pipechat old mode 100644 new mode 100755 index 46cb039..16ba5d2 --- a/pipechat +++ b/pipechat @@ -16,14 +16,15 @@ listen_pid=$! choice="" choice2="" -while [ "$choice" != "q" ] +while [ "$choice" != ":quit" ] do - echo "Available users: (Type 'q' to exit)" + echo "Type an available user or ':quit' to exit." + echo "Available users:" ls $basedir read choice [ -p $basedir/$choice ] && { clear - echo "Chat with $choice. -Type :quit to exit" + echo "Chat with $choice. --- Type ':quit' to exit" while true do read choice2 @@ -31,12 +32,12 @@ do :quit) break ;; :help) echo "Type :quit to quit." ;; #*) printf "\e[0;36m${USER}: $choice2\e[m\n" > $basedir/$choice ;; - *) printf "${USER}: $choice2" > $basedir/$choice ;; + *) printf "${USER}: $choice2\n" > $basedir/$choice ;; esac done } - [ -p $basedir/$choice ] || [ "$choice" = "q" ] || echo "$choice is not an available user" + [ -p $basedir/$choice ] || [ "$choice" = ":quit" ] || echo "$choice is not an available user" done kill $listen_pid