Skip to content

Commit

Permalink
Support strings with quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
xtrime-ru authored Oct 13, 2020
1 parent d9d53db commit 1f823a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions php-extension.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ fi
#toogle extension line in .ini file:
find "$PHP_DIR" -type f -name "*.ini" | while read -r FILE; do
if [ "$ENABLE" == true ]; then
COMMAND=("sed $SED_ARGS s/^;((zend_extension|extension).+$EXTENSION\.so)$/\1/g $FILE")
COMMAND=("sed $SED_ARGS s/^;((zend_extension|extension).+$EXTENSION\.so\"?)$/\1/g $FILE")
else
COMMAND=("sed $SED_ARGS s/^((zend_extension|extension).+$EXTENSION\.so)$/;\1/g $FILE")
COMMAND=("sed $SED_ARGS s/^((zend_extension|extension).+$EXTENSION\.so\"?)$/;\1/g $FILE")
fi

$COMMAND
Expand Down

0 comments on commit 1f823a3

Please sign in to comment.