From bd0a20edbf93ffda33affe5c4a1f1fdecf0b8d74 Mon Sep 17 00:00:00 2001 From: Loris Leiva Date: Thu, 17 Sep 2020 13:29:48 +0100 Subject: [PATCH 1/5] Update ConfigFileBuilder.php --- src/LaravelDeployer/ConfigFileBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LaravelDeployer/ConfigFileBuilder.php b/src/LaravelDeployer/ConfigFileBuilder.php index cfb8089..146f459 100644 --- a/src/LaravelDeployer/ConfigFileBuilder.php +++ b/src/LaravelDeployer/ConfigFileBuilder.php @@ -49,7 +49,7 @@ class ConfigFileBuilder public function __construct() { $basePath = base_path(); - $this->set('options.repository', exec("cd \"$basePath\" && git config --get remote.origin.url") ?? ''); + $this->set('options.repository', exec("cd $basePath && git config --get remote.origin.url") ?? ''); $lumen = preg_match('/Lumen/', app()->version()); $this->set('hooks.ready', $lumen ? $this->lumenHooks : $this->laravelHooks); From f0029a89a47b373aca1874ef216246cfedba28ab Mon Sep 17 00:00:00 2001 From: Loris Leiva Date: Thu, 17 Sep 2020 13:30:45 +0100 Subject: [PATCH 2/5] Update firstdeploy.php --- src/strategy/firstdeploy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strategy/firstdeploy.php b/src/strategy/firstdeploy.php index ebc1c2a..491382b 100644 --- a/src/strategy/firstdeploy.php +++ b/src/strategy/firstdeploy.php @@ -52,6 +52,6 @@ $question = "Are you sure you want to continue and delete those elements?"; if (get('debug', false) || askConfirmation($question, false)) { - run("cd \"{{deploy_path}}\" && rm -rf $filesToDelete"); + run("cd {{deploy_path}} && rm -rf $filesToDelete"); } }); From 24b3405405babf27a63fc4060590cd08b88cbbbd Mon Sep 17 00:00:00 2001 From: Loris Leiva Date: Thu, 17 Sep 2020 13:31:11 +0100 Subject: [PATCH 3/5] Update pull.php --- src/strategy/pull.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strategy/pull.php b/src/strategy/pull.php index 270d3ba..7bdff9e 100644 --- a/src/strategy/pull.php +++ b/src/strategy/pull.php @@ -23,5 +23,5 @@ 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"); } - run('cd "{{deploy_path}}/current" && git pull'); + run('cd {{deploy_path}}/current && git pull'); }); From 3f8d417436543baa213db656267d78c271bdcf43 Mon Sep 17 00:00:00 2001 From: Loris Leiva Date: Thu, 17 Sep 2020 13:31:58 +0100 Subject: [PATCH 4/5] Update common.php --- src/task/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/task/common.php b/src/task/common.php index 86f8d98..3b6f452 100644 --- a/src/task/common.php +++ b/src/task/common.php @@ -87,5 +87,5 @@ if (!commandExist('unzip')) { writeln('To speed up composer installation setup "unzip" command with PHP zip extension https://goo.gl/sxzFcD'); } - run('cd "{{release_path}}" && {{bin/composer}} {{composer_options}}'); + run('cd {{release_path}} && {{bin/composer}} {{composer_options}}'); }); From 441b1295c86d382aa38bbd379468f4698ffd4373 Mon Sep 17 00:00:00 2001 From: Loris Leiva Date: Thu, 17 Sep 2020 13:32:19 +0100 Subject: [PATCH 5/5] Update logs.php --- src/task/logs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/task/logs.php b/src/task/logs.php index d2d6b6f..7f0bd91 100644 --- a/src/task/logs.php +++ b/src/task/logs.php @@ -7,5 +7,5 @@ desc('Read logs from a given host'); task('logs', function() { - writeln(run('cd "{{deploy_path}}/current" && {{log_command}}')); + writeln(run('cd {{deploy_path}}/current && {{log_command}}')); })->shallow();