Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make '-h' exit immediately after printing help info.
Without this, the script continues to execute, and we see this error: ``` ./deploy.sh: line 124: [: =: unary operator expected Deploy directory '' does not exist. Aborting. ```
- Loading branch information
dc3959f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed this when checking formatting after completing the sentence I left dangling.
But I noticed that
return 1
also seems to work here as well. At least, I don't see the two Bash errors. Spent a little time trying to make a test for this, and haven't had much success.exit
seems safer to me, and I'm pretty sure we don't want a non-zero exit status. Probably doesn't matter much for--help
here, still.