Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

always success #950

Merged
merged 2 commits into from Jan 16, 2017
Merged

always success #950

merged 2 commits into from Jan 16, 2017

Conversation

ad3n
Copy link
Contributor

@ad3n ad3n commented Jan 11, 2017

always success when running unlock

Q A
Bug fix? Yes
New feature? No
BC breaks? No
Deprecations? No
Fixed tickets N/A

Run deploy:unlock always return success instead of exception when deploy.lock not exist

always success when running unlock
@ad3n
Copy link
Contributor Author

ad3n commented Jan 11, 2017

I checked, the error is not related with this PR

run("rm {{deploy_path}}/.dep/deploy.lock");
try {
run("rm {{deploy_path}}/.dep/deploy.lock");//always success
} catch (\Exception $e) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's bad solution to mute all errors, better to use bash or rm options.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, i change to use -f instead of try catch block

Use -f to avoid error when file is not exist
@antonmedv antonmedv merged commit 8e6351e into deployphp:master Jan 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants