mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 09:12:51 +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');
|
||||
task('deploy:unlock', function () {
|
||||
try {
|
||||
run("rm {{deploy_path}}/.dep/deploy.lock");//always success
|
||||
} catch (\Exception $e) {
|
||||
}
|
||||
run("rm -f {{deploy_path}}/.dep/deploy.lock");//always success
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user