mirror of
https://github.com/cytopia/devilbox.git
synced 2025-04-08 11:34:14 +00:00
Fix CI script to detect PHP version
This commit is contained in:
parent
9ac4b7399f
commit
6acac7d8de
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user