From 82cd13ca0cffa01a83e9133b3d21742c5c1b3b39 Mon Sep 17 00:00:00 2001 From: Muhamad Surya Iksanudin Date: Thu, 12 Jan 2017 11:50:46 +0700 Subject: [PATCH] Use -f to avoid error when file is not exist Use -f to avoid error when file is not exist --- recipe/deploy/lock.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/recipe/deploy/lock.php b/recipe/deploy/lock.php index 313956ae..e23f663d 100644 --- a/recipe/deploy/lock.php +++ b/recipe/deploy/lock.php @@ -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 });