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

Prevent unexpected exit status 1 when deleting codecoverage metadata #1

Merged
merged 2 commits into from
Feb 23, 2018

Conversation

fabiomassimo
Copy link
Contributor

@fabiomassimo fabiomassimo commented Dec 2, 2017

What

As very last step, this action implementation gently cleans everything after itself. Although, last script from codecoverage.io takes now care of this for us.
The result of deleting something that is not there, because already cleaned, causes the return of exit status 1

How

I have added the -f option to rm such that we can prevent a change in the exit status if the remove can not find any matching file to delete.

…event unexpected exit status change when the file is not available.
@jpshelley
Copy link

Was just about to create an github issue for this exact problem. Nice fix. Any chance to get it merged asap?

@RudyB
Copy link

RudyB commented Feb 19, 2018

@fabiomassimo I submitted a pull request (#3) for this issue before checking to see if anyone else had fixed it. Your solution is far simpler than mine. I hope @BinaryBeard will merge one soon

@BinaryBeard BinaryBeard merged commit e765ad5 into BinaryBeard:master Feb 23, 2018
This was referenced Feb 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants