Fix CI script to detect PHP version

This commit is contained in:
cytopia 2022-03-27 07:04:09 +02:00
parent 9ac4b7399f
commit 6acac7d8de
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2

View File

@ -47,8 +47,7 @@ get_php_version() {
# Check php -v
>&2 printf "Fetching PHP version from php -v: "
if ! cli_version="$( run "docker-compose exec -T php php -v \
| head -1 \
| grep -Eo 'PHP[[:space:]]+[0-9]+\\.[0-9]+' \
| grep -Eo '^PHP[[:space:]]+[0-9]+\\.[0-9]+' \
| grep -Eo '[0-9]+\\.[0-9]+'" \
"${retries}" "${root_path}" "0" )"; then
>&2 printf "FAILED\\n"