From 955cad1c605d588c69be8d8990fe5f020dda13f6 Mon Sep 17 00:00:00 2001 From: Dave Crump Date: Sat, 10 Dec 2016 16:14:55 +0000 Subject: [PATCH] Tidy User Input Test --- install.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/install.sh b/install.sh index 8896db3..29b7577 100755 --- a/install.sh +++ b/install.sh @@ -155,13 +155,9 @@ printf "A reboot will be required before using the software." printf "Do you want to reboot now? (y/n)\n" read -n 1 printf "\n" -if [ "$REPLY" = "Y" ]; then - echo "rebooting" - sudo reboot now -fi -if [ "$REPLY" = "y" ]; then - echo "rebooting" - sudo reboot now +if [[ "$REPLY" = "y" || "$REPLY" = "Y" ]]; then + echo "rebooting" + sudo reboot now fi exit