Skip to content

Commit dc3959f

Browse files
author
Matt Pearson
committed
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. ```
1 parent b91b54e commit dc3959f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deploy.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ parse_args() {
5656
while : ; do
5757
if [[ $1 = "-h" || $1 = "--help" ]]; then
5858
echo "$help_message"
59-
return 0
59+
exit 0
6060
elif [[ $1 = "-v" || $1 = "--verbose" ]]; then
6161
verbose=true
6262
shift

0 commit comments

Comments
 (0)