fixed oopsie

This commit is contained in:
Bram Prieshof
2020-08-14 15:09:01 +02:00
parent 7ca6d9c175
commit e07d0ea7b5

View File

@@ -8,13 +8,14 @@ PPAversion=`apt list php | egrep -o "([0-9]{1,}.)+[0-9]{1,}" | cut -c 3-` && PPA
msg () {
if [ $IMODE = n ]; then
TERM=ansi whiptail --title "Info" --infobox "$1" 8 52
TERM=ansi whiptail --title "Info" --msgbox "$1" 8 52
fi
if [ $IMODE = l ]; then
echo "$1"
fi
}
msg "Current php version: $phpver"
if [ $IMODE = n ]; then
# Legacy/Main Menu
@@ -55,7 +56,7 @@ if [ $IMODE = l ]; then
[Nn]* ) echo "";
echo "Please enter php version to install:";read newphpver
break;;
* ) echo "Choose yes of no.";;
* ) echo "Choose yes or no.";;
esac
done
@@ -73,7 +74,7 @@ if [ $IMODE = l ]; then
break;;
[Nn]* ) PhpPurge=0 ; echo ""
break;;
* ) echo "Choose yes of no.";;
* ) echo "Choose yes or no.";;
esac
done
fi