From 7b7d61ca01ee7466bacfde2cc18bb57c0de721c1 Mon Sep 17 00:00:00 2001 From: Daniel Barber Date: Mon, 15 Apr 2019 22:09:37 -0400 Subject: [PATCH] Improve keypress wait --- setup.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/setup.sh b/setup.sh index 8cc50f1..2e5c45b 100755 --- a/setup.sh +++ b/setup.sh @@ -19,8 +19,7 @@ if [ ! -f "$HOME/.ssh/id_ed25519.pub" ]; then echo "============ Public key =============" cat ~/.ssh/id_ed25519.pub echo "=====================================" - echo "Press a key when done." - read -n 1 + read -r -p "Press any key to continue... " -n 1 fi # Install Homebrew