From 5915f05b06af8edbd9fb3010351af5dff8b9c322 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Fri, 3 Apr 2020 13:40:11 +0530 Subject: [PATCH] Suppress php-config error --- src/scripts/darwin.sh | 2 +- src/scripts/linux.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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