This commit is contained in:
Ivan Jurišić 2023-11-03 10:12:55 +01:00
parent 8285c4ffc7
commit 4b6d79fc50

View File

@ -18,18 +18,17 @@ check_root() {
choice() { choice() {
echo -ne "[y/n]" echo -ne "[y/n]"
while true while true; do
do
read -rN1 input read -rN1 input
case $input in case $input in
[yY][eE][sS]|[yY]) [yY][eE][sS] | [yY])
return 0 return 0
break break
;; ;;
[nN][oO]|[nN]) [nN][oO] | [nN])
return 1 return 1
;; ;;
esac esac
done done
} }
@ -43,6 +42,7 @@ echo "$APT_UPDATE"
$APT_UPDATE $APT_UPDATE
echo -ne "\nYou want to install Firefox Nightly ($PKG_FIREFOX)? " echo -ne "\nYou want to install Firefox Nightly ($PKG_FIREFOX)? "
if choice 2>/dev/null; then if choice 2>/dev/null; then
echo -ne "\nAdd repository for Firefox Nightly\n" echo -ne "\nAdd repository for Firefox Nightly\n"
$APT_INST apt-transport-https wget $APT_INST apt-transport-https wget