Fix sed call in parse_pecl_configure_options

This commit is contained in:
Shivam Mathur 2022-12-27 04:42:24 +05:30
parent 8e2ac35f63
commit 40846b27d0
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -13,7 +13,7 @@ parse_args() {
# Function to parse configure options for pecl
# Make sure we have all options in name="value" form i.e XML properties.
parse_pecl_configure_options() {
configure_opts=$(echo "$1" | sed -r -e "s#['\"]|--##g")
configure_opts=$(echo "$1" | sed -E -e "s#['\"]|--##g")
IFS=' ' read -r -a opts_array <<< "$configure_opts"
output_opts=()
for opt in "${opts_array[@]}"; do