Tidy User Input Test

pull/51/head
Dave Crump 2016-12-10 16:14:55 +00:00 zatwierdzone przez GitHub
rodzic aa8e0b3f00
commit 955cad1c60
1 zmienionych plików z 3 dodań i 7 usunięć

Wyświetl plik

@ -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