fix functions error

This commit is contained in:
KiekerJan 2022-10-15 16:54:32 +02:00
parent 9a842cbc1d
commit cadbda12cc
1 changed files with 2 additions and 2 deletions

View File

@ -4,8 +4,6 @@
# -o pipefail: don't ignore errors in the non-last command in a pipeline # -o pipefail: don't ignore errors in the non-last command in a pipeline
set -euo pipefail set -euo pipefail
PHP_VER=php_version
function hide_output { function hide_output {
# This function hides the output of a command unless the command fails # This function hides the output of a command unless the command fails
# and returns a non-zero exit code. # and returns a non-zero exit code.
@ -227,3 +225,5 @@ function git_clone {
function php_version { function php_version {
php --version | head -n 1 | cut -d " " -f 2 | cut -c 1-3 php --version | head -n 1 | cut -d " " -f 2 | cut -c 1-3
} }
PHP_VER=$(php_version)