From cadbda12cc020898964d42c0713382c8a8dd8ad5 Mon Sep 17 00:00:00 2001 From: KiekerJan Date: Sat, 15 Oct 2022 16:54:32 +0200 Subject: [PATCH] fix functions error --- setup/functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/functions.sh b/setup/functions.sh index fd86f1e7..aebcae36 100644 --- a/setup/functions.sh +++ b/setup/functions.sh @@ -4,8 +4,6 @@ # -o pipefail: don't ignore errors in the non-last command in a pipeline set -euo pipefail -PHP_VER=php_version - function hide_output { # This function hides the output of a command unless the command fails # and returns a non-zero exit code. @@ -227,3 +225,5 @@ function git_clone { function php_version { php --version | head -n 1 | cut -d " " -f 2 | cut -c 1-3 } + +PHP_VER=$(php_version)