fixed chdir in dev controller

This commit is contained in:
Carsten Brandt
2015-04-30 11:47:23 +02:00
parent 4496e2c405
commit 2d1650554b

View File

@ -97,12 +97,15 @@ class DevController extends Controller
$dirs = array_merge($dirs, $this->listSubDirs("$base/apps"));
asort($dirs);
$oldcwd = getcwd();
foreach($dirs as $dir) {
$displayDir = substr($dir, strlen($base));
$this->stdout("Running '$command' in $displayDir...\n", Console::BOLD);
chdir($dir);
passthru($command);
$this->stdout("done.\n", Console::BOLD, Console::FG_GREEN);
}
chdir($oldcwd);
}
/**