Exit on failing to setup PHP

This commit is contained in:
Shivam Mathur
2021-02-22 10:38:50 +05:30
parent 20b87bc786
commit 678ad243bf
3 changed files with 21 additions and 7 deletions

View File

@ -307,6 +307,10 @@ else
status="Found"
fi
if ! command -v php"$version" >/dev/null; then
add_log "$cross" "PHP" "Could not setup PHP $version"
exit 1
fi
semver=$(php_semver)
scan_dir=$(php --ini | grep additional | sed -e "s|.*: s*||")
ini_file=$(php --ini | grep "Loaded Configuration" | sed -e "s|.*:s*||" | sed "s/ //g")