Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
Merge pull request #236 from nickdgriffin/feature/quickstart_h_flag
Browse files Browse the repository at this point in the history
Adding -h to print usage, just to avoid the error message
  • Loading branch information
RobertNorthard authored Jul 29, 2017
2 parents 399e54e + 1ffa6d2 commit a531789
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion quickstart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ provision_aws() {
fi
}

while getopts "t:m:a:s:c:z:r:u:p:" opt; do
while getopts "t:m:a:s:c:z:r:u:p:h" opt; do
case ${opt} in
t)
export MACHINE_TYPE=${OPTARG}
Expand Down Expand Up @@ -193,6 +193,10 @@ while getopts "t:m:a:s:c:z:r:u:p:" opt; do
p)
export INITIAL_ADMIN_PASSWORD_PLAIN=${OPTARG}
;;
h)
usage
exit
;;
*)
echo "Invalid parameter(s) or option(s)."
usage
Expand Down

0 comments on commit a531789

Please sign in to comment.