Fixing paths related issue
This commit is contained in:
parent
2ff2170fd5
commit
7d5c3e4b04
|
@ -3,11 +3,14 @@ namespace taskman;
|
|||
use Exception;
|
||||
|
||||
task('composer', function($args) {
|
||||
global $GAME_ROOT;
|
||||
|
||||
$files = glob(__DIR__ . '/../composer/composer-*.phar');
|
||||
$composer_dir = $GAME_ROOT . '/composer/';
|
||||
|
||||
$files = glob($composer_dir . '/composer-*.phar');
|
||||
$PHAR = basename($files[0]);
|
||||
|
||||
$cmd = "cd " . __DIR__ . "/../composer/ && ";
|
||||
$cmd = "cd $composer_dir && ";
|
||||
if(PHP_OS_FAMILY === 'Darwin')
|
||||
{
|
||||
$cmd .= "DYLD_LIBRARY_PATH='" . getenv("DYLD_LIBRARY_PATH") . "' " .
|
||||
|
|
Loading…
Reference in New Issue