Updated
This commit is contained in:
parent
8285c4ffc7
commit
4b6d79fc50
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user