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() {
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