Skip to content

Commit ed9a76f

Browse files
committed
Reduce log volume with pecl install
1 parent a6c0a1a commit ed9a76f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

bin/compile-extensions-common

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ function pecl_install() {
3333
if [ $return = 0 ] || [ -f "$(pecl config-get ext_dir)/${extension}.so" ]; then
3434
echo "Extension ${extension} was already installed for PHP ${VERSION}."
3535
elif [ $return = 1 ]; then
36-
result=$(pecl install ${extension})
37-
last_line=$(echo $result | tail -1)
38-
if [[ "$last_line" =~ failed ]]; then
36+
pecl install -q ${extension} | tee ${extension}-install.log
37+
if (tail -1 ${extension}-install.log | grep failed); then
3938
echo "There was an error installing extension ${extension} for PHP ${VERSION}:"
4039
echo "$result"
4140
set -o errexit

0 commit comments

Comments
 (0)