Suppress php-config error

This commit is contained in:
Shivam Mathur 2020-04-03 13:40:11 +05:30
parent dccdb5ab67
commit 5915f05b06
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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