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:
Muhamad Surya Iksanudin 2017-01-12 11:50:46 +07:00 committed by GitHub
parent 3421114f25
commit 82cd13ca0c

View File

@ -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
});