Adding a check for php version

This commit is contained in:
ulvii 2017-07-12 18:05:03 -07:00
parent 6b2e43e5c7
commit 45c574e0d7

View file

@ -6,7 +6,7 @@ else
echo "First argument must be one of Ubuntu16, RedHat7, Sierra. Exiting..."
exit 1
fi
if [[ "$2" = "" ]]; then
if [[ "$2" != 7.*.* ]]; then
echo "Second argument must be PHP version in format of 7.x.x.Exiting..."
exit
else