mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 09:12:51 +01:00
Fix release cleanup #871.
This commit is contained in:
parent
c95d8b89f9
commit
2fb14e0c0f
@ -276,7 +276,7 @@ task('deploy:release', function () {
|
||||
$previousReleaseExist = run("if [ -h release ]; then echo 'true'; fi")->toBool();
|
||||
|
||||
if ($previousReleaseExist) {
|
||||
run('rm -rf "{{release_path}}"'); // Delete release.
|
||||
run('rm -rf "$(readlink release)"'); // Delete release.
|
||||
run('rm release'); // Delete symlink.
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user