mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-08-23 14:04:07 +07:00
Exit on failing to setup PHP
This commit is contained in:
@ -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")
|
||||
|
Reference in New Issue
Block a user