Skip to content

Commit

Permalink
Shorten grep call in add_extensions.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Jun 7, 2023
1 parent fb5054b commit 592bbc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/extensions/add_extensions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ pecl_install() {
yes '' 2>/dev/null | sudo "$prefix_opts" pecl install -f -D "$(parse_pecl_configure_options "$suffix_opts")" "$extension" >/dev/null 2>&1
fi
local exit_code=$?
sudo pecl info "$extension" | grep -iq 'PECL-style zend extension' && prefix=zend_extension
sudo pecl info "$extension" | grep -iq 'zend extension' && prefix=zend_extension
enable_extension "${extension%-*}" "$prefix"
return "$exit_code"
}
Expand Down

0 comments on commit 592bbc7

Please sign in to comment.