mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 01:02:24 +01:00
Use -f to avoid error when file is not exist
Use -f to avoid error when file is not exist
This commit is contained in:
parent
3421114f25
commit
82cd13ca0c
@ -23,8 +23,5 @@ task('deploy:lock', function () {
|
|||||||
|
|
||||||
desc('Unlock deploy');
|
desc('Unlock deploy');
|
||||||
task('deploy:unlock', function () {
|
task('deploy:unlock', function () {
|
||||||
try {
|
run("rm -f {{deploy_path}}/.dep/deploy.lock");//always success
|
||||||
run("rm {{deploy_path}}/.dep/deploy.lock");//always success
|
|
||||||
} catch (\Exception $e) {
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user