diff --git a/src/scripts/darwin.sh b/src/scripts/darwin.sh index d9a510b7..e701f5e9 100644 --- a/src/scripts/darwin.sh +++ b/src/scripts/darwin.sh @@ -197,7 +197,7 @@ version=$1 nodot_version=${1/./} old_versions="5.[3-5]" tool_path_dir="/usr/local/bin" -existing_version=$(php-config --version | cut -c 1-3) +existing_version=$(php-config --version 2>/dev/null | cut -c 1-3) [[ -z "${update}" ]] && update='false' || update="${update}" # Setup PHP diff --git a/src/scripts/linux.sh b/src/scripts/linux.sh index 214ae429..07111e8d 100644 --- a/src/scripts/linux.sh +++ b/src/scripts/linux.sh @@ -313,7 +313,7 @@ old_versions="5.[4-5]" debconf_fix="DEBIAN_FRONTEND=noninteractive" apt_install="sudo $debconf_fix apt-fast install -y" tool_path_dir="/usr/local/bin" -existing_version=$(php-config --version | cut -c 1-3) +existing_version=$(php-config --version 2>/dev/null | cut -c 1-3) [[ -z "${update}" ]] && update='false' || update="${update}" # Setup PHP