setup-php 2.30.2 → 2.30.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "setup-php",
3
- "version": "2.30.2",
3
+ "version": "2.30.3",
4
4
  "private": false,
5
5
  "description": "Setup PHP for use with GitHub Actions",
6
6
  "main": "lib/install.js",
@@ -227,7 +227,7 @@ setup_php() {
227
227
  status="Updated to"
228
228
  fi
229
229
  php_config="$(command -v php-config)"
230
- ext_dir="$(grep 'extension_dir=' "$php_config" | cut -d "'" -f 2)"
230
+ ext_dir="$(sed -n "s/.*extension_dir=['\"]\(.*\)['\"].*/\1/p" "$php_config")"
231
231
  ini_dir="$(php_ini_path)"
232
232
  scan_dir="$(get_scan_dir)"
233
233
  ini_file="$ini_dir"/php.ini