Skip to content

Commit

Permalink
use getcwd() instead of exec('pwd')
Browse files Browse the repository at this point in the history
  • Loading branch information
addshore committed Mar 24, 2014
1 parent 5add01f commit c61e495
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
die( 'Not an entry point' );
}

$pwd = exec( 'pwd' );
$pwd = getcwd();
chdir( __DIR__ . '/..' );
passthru( 'composer update' );
chdir( $pwd );
Expand All @@ -17,4 +17,4 @@
call_user_func( $extensionFunction );
}

$GLOBALS['wtfIsThisShit'] = $GLOBALS['wgHooks'];
$GLOBALS['wtfIsThisShit'] = $GLOBALS['wgHooks'];

0 comments on commit c61e495

Please sign in to comment.