We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6c0a1a commit ed9a76fCopy full SHA for ed9a76f
bin/compile-extensions-common
@@ -33,9 +33,8 @@ function pecl_install() {
33
if [ $return = 0 ] || [ -f "$(pecl config-get ext_dir)/${extension}.so" ]; then
34
echo "Extension ${extension} was already installed for PHP ${VERSION}."
35
elif [ $return = 1 ]; then
36
- result=$(pecl install ${extension})
37
- last_line=$(echo $result | tail -1)
38
- if [[ "$last_line" =~ failed ]]; then
+ pecl install -q ${extension} | tee ${extension}-install.log
+ if (tail -1 ${extension}-install.log | grep failed); then
39
echo "There was an error installing extension ${extension} for PHP ${VERSION}:"
40
echo "$result"
41
set -o errexit
0 commit comments