mirror of
https://github.com/cytopia/devilbox.git
synced 2025-04-25 13:29:40 +00:00
Fix CI script to detect PHP version
This commit is contained in:
parent
bb7069192c
commit
945566d74b
@ -47,8 +47,7 @@ get_php_version() {
|
|||||||
# Check php -v
|
# Check php -v
|
||||||
>&2 printf "Fetching PHP version from php -v: "
|
>&2 printf "Fetching PHP version from php -v: "
|
||||||
if ! cli_version="$( run "docker-compose exec -T php 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]+'" \
|
| grep -Eo '[0-9]+\\.[0-9]+'" \
|
||||||
"${retries}" "${root_path}" "0" )"; then
|
"${retries}" "${root_path}" "0" )"; then
|
||||||
>&2 printf "FAILED\\n"
|
>&2 printf "FAILED\\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user