mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-11-25 16:46:50 +07:00
Exit on failing to setup PHP
This commit is contained in:
@ -267,6 +267,10 @@ setup_php() {
|
||||
status="Found"
|
||||
fi
|
||||
fi
|
||||
if ! command -v php"$version" >/dev/null; then
|
||||
add_log "$cross" "PHP" "Could not setup PHP $version"
|
||||
exit 1
|
||||
fi
|
||||
semver=$(php_semver)
|
||||
ext_dir=$(php -i | grep "extension_dir => /" | sed -e "s|.*=> s*||")
|
||||
scan_dir=$(php --ini | grep additional | sed -e "s|.*: s*||")
|
||||
|
||||
Reference in New Issue
Block a user