From 4b6d79fc509f98d948d6d97154f5b9ec18420bb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Juri=C5=A1i=C4=87?= Date: Fri, 3 Nov 2023 10:12:55 +0100 Subject: [PATCH] Updated --- firefox/firefox-nightly.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/firefox/firefox-nightly.sh b/firefox/firefox-nightly.sh index 629950b..33ce21f 100755 --- a/firefox/firefox-nightly.sh +++ b/firefox/firefox-nightly.sh @@ -18,18 +18,17 @@ check_root() { choice() { echo -ne "[y/n]" - while true - do + while true; do read -rN1 input - case $input in - [yY][eE][sS]|[yY]) - return 0 + case $input in + [yY][eE][sS] | [yY]) + return 0 - break - ;; - [nN][oO]|[nN]) - return 1 - ;; + break + ;; + [nN][oO] | [nN]) + return 1 + ;; esac done } @@ -43,6 +42,7 @@ echo "$APT_UPDATE" $APT_UPDATE echo -ne "\nYou want to install Firefox Nightly ($PKG_FIREFOX)? " + if choice 2>/dev/null; then echo -ne "\nAdd repository for Firefox Nightly\n" $APT_INST apt-transport-https wget