Commit 1f97c0ca authored by Guilhem Bonnefille's avatar Guilhem Bonnefille
Browse files

fix: extract only PHP_INI_DIR

A grep on `php.ini` can retrieve too many information.
The exact need is the PHP_INI_DIR.
parent 99d6e4ef
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -463,7 +463,7 @@ stages:

  # appends xdebug.mode=coverage in php.ini file
  function set_xdebug_mode() {
    phpini_path=$(php -i | grep php.ini | sed -e 's/.*=> *//')
    phpini_path=$(php -i | sed -n -e 's/PHP_INI_DIR => *//p')
    echo 'xdebug.mode=coverage' >> "${phpini_path}/conf.d/xdebug_coverage.ini"
    log_info "xdebug.mode=coverage set in \\e[33;1m${phpini_path}/conf.d/xdebug_coverage.ini\\e[0m"
  }