Suppress php-config error

This commit is contained in:
Shivam Mathur
2020-05-13 20:36:57 +05:30
parent e9e024e600
commit 5af5f992ec
3 changed files with 9 additions and 29 deletions

View File

@ -177,7 +177,7 @@ tick="✓"
cross="✗"
version=$1
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)
# Setup PHP
step_log "Setup PHP"

View File

@ -241,7 +241,7 @@ version=$1
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)
# Setup PHP
step_log "Setup PHP"