Skip to content

Bail with status code if file doesnt exits#74

Closed
stoyan-g wants to merge 5 commits intowp-cli:masterfrom
stoyan-g:bail-with-status-code-if-file-doesnt-exits
Closed

Bail with status code if file doesnt exits#74
stoyan-g wants to merge 5 commits intowp-cli:masterfrom
stoyan-g:bail-with-status-code-if-file-doesnt-exits

Conversation

@stoyan-g
Copy link
Contributor

Added additional check to bail if the file/files do not exist. By doing this a status code 1 will be available if the operation fails, as previously it did not exit with any status, due to the fact that $args was an empty array and it was never doing the foreach loop.

@schlessera
Copy link
Member

Merged via #75

@schlessera schlessera closed this Sep 11, 2022
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.

2 participants