mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 09:12:51 +01:00
Change dir only if its is specified.
This commit is contained in:
parent
997b83b99e
commit
33d465fc2b
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user