Change dir only if its is specified.

This commit is contained in:
Anton Medvedev 2015-05-13 13:16:40 +07:00
parent 997b83b99e
commit 33d465fc2b

View File

@ -278,7 +278,9 @@ function run($command)
$command = env()->parse($command);
$workingPath = workingPath();
$command = "cd $workingPath && $command";
if (!empty($workingPath)) {
$command = "cd $workingPath && $command";
}
if (isVeryVerbose()) {
writeln("<comment>Run</comment>: $command");