Skip to content

Commit

Permalink
Merge pull request #136 from tfirdaus/feature/allow-root-env
Browse files Browse the repository at this point in the history
  • Loading branch information
schlessera authored Nov 23, 2021
2 parents 9c2659f + a42292b commit 79d0a53
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Context/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,11 @@ private static function get_process_env_variables() {
$env['WP_CLI_CONFIG_PATH'] = $config_path;
}

$allow_root = getenv( 'WP_CLI_ALLOW_ROOT' );
if ( false !== $allow_root ) {
$env['WP_CLI_ALLOW_ROOT'] = $allow_root;
}

$term = getenv( 'TERM' );
if ( false !== $term ) {
$env['TERM'] = $term;
Expand Down

0 comments on commit 79d0a53

Please sign in to comment.