mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 11:51:07 +07:00
Fix sed call in parse_pecl_configure_options
This commit is contained in:
parent
8e2ac35f63
commit
40846b27d0
@ -13,7 +13,7 @@ parse_args() {
|
|||||||
# Function to parse configure options for pecl
|
# Function to parse configure options for pecl
|
||||||
# Make sure we have all options in name="value" form i.e XML properties.
|
# Make sure we have all options in name="value" form i.e XML properties.
|
||||||
parse_pecl_configure_options() {
|
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"
|
IFS=' ' read -r -a opts_array <<< "$configure_opts"
|
||||||
output_opts=()
|
output_opts=()
|
||||||
for opt in "${opts_array[@]}"; do
|
for opt in "${opts_array[@]}"; do
|
||||||
|
Loading…
Reference in New Issue
Block a user