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 () { msg () {
if [ $IMODE = n ]; then if [ $IMODE = n ]; then
TERM=ansi whiptail --title "Info" --infobox "$1" 8 52 TERM=ansi whiptail --title "Info" --msgbox "$1" 8 52
fi fi
if [ $IMODE = l ]; then if [ $IMODE = l ]; then
echo "$1" echo "$1"
fi fi
} }
msg "Current php version: $phpver"
if [ $IMODE = n ]; then if [ $IMODE = n ]; then
# Legacy/Main Menu # Legacy/Main Menu
@@ -55,7 +56,7 @@ if [ $IMODE = l ]; then
[Nn]* ) echo ""; [Nn]* ) echo "";
echo "Please enter php version to install:";read newphpver echo "Please enter php version to install:";read newphpver
break;; break;;
* ) echo "Choose yes of no.";; * ) echo "Choose yes or no.";;
esac esac
done done
@@ -73,7 +74,7 @@ if [ $IMODE = l ]; then
break;; break;;
[Nn]* ) PhpPurge=0 ; echo "" [Nn]* ) PhpPurge=0 ; echo ""
break;; break;;
* ) echo "Choose yes of no.";; * ) echo "Choose yes or no.";;
esac esac
done done
fi fi