mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 01:02:24 +01:00
Improve symlink check in deploy:release task
This commit is contained in:
parent
5a53b0ade9
commit
f9e0f014b1
@ -83,7 +83,7 @@ task('deploy:release', function () {
|
||||
|
||||
run("mkdir $releasePath");
|
||||
|
||||
run("cd {{deploy_path}} && if [ -e release ]; then rm release; fi");
|
||||
run("cd {{deploy_path}} && if [ -h release ]; then rm release; fi");
|
||||
|
||||
run("ln -s $releasePath {{deploy_path}}/release");
|
||||
})->desc('Prepare release');
|
||||
|
Loading…
x
Reference in New Issue
Block a user