Skip to content

Commit a8feae3

Browse files
authored
Merge pull request #207 from lorisleiva/revert-pr-199
Revert PR #199
2 parents a367c15 + 441b129 commit a8feae3

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/LaravelDeployer/ConfigFileBuilder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class ConfigFileBuilder
4949
public function __construct()
5050
{
5151
$basePath = base_path();
52-
$this->set('options.repository', exec("cd \"$basePath\" && git config --get remote.origin.url") ?? '');
52+
$this->set('options.repository', exec("cd $basePath && git config --get remote.origin.url") ?? '');
5353

5454
$lumen = preg_match('/Lumen/', app()->version());
5555
$this->set('hooks.ready', $lumen ? $this->lumenHooks : $this->laravelHooks);

src/strategy/firstdeploy.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@
5252

5353
$question = "Are you sure you want to continue and delete those elements?";
5454
if (get('debug', false) || askConfirmation($question, false)) {
55-
run("cd \"{{deploy_path}}\" && rm -rf $filesToDelete");
55+
run("cd {{deploy_path}} && rm -rf $filesToDelete");
5656
}
5757
});

src/strategy/pull.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@
2323
throw new \Exception("There is no `current` folder to execute a `git pull` from.\nPlease choose another strategy to deploy your application before using the `pull` strategy");
2424
}
2525

26-
run('cd "{{deploy_path}}/current" && git pull');
26+
run('cd {{deploy_path}}/current && git pull');
2727
});

src/task/common.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,5 @@
8787
if (!commandExist('unzip')) {
8888
writeln('<comment>To speed up composer installation setup "unzip" command with PHP zip extension https://goo.gl/sxzFcD</comment>');
8989
}
90-
run('cd "{{release_path}}" && {{bin/composer}} {{composer_options}}');
90+
run('cd {{release_path}} && {{bin/composer}} {{composer_options}}');
9191
});

src/task/logs.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77

88
desc('Read logs from a given host');
99
task('logs', function() {
10-
writeln(run('cd "{{deploy_path}}/current" && {{log_command}}'));
10+
writeln(run('cd {{deploy_path}}/current && {{log_command}}'));
1111
})->shallow();

0 commit comments

Comments
 (0)