From 72399e3c7cb06007d29838a3bd4bbf58a14d1ed4 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Fri, 22 Nov 2019 10:09:40 +0100 Subject: [PATCH] Fix bug 896 Change-Id: I5f49bf38d6f72030d818d148e488f7d248165f67 Signed-off-by: garciadeblas --- installers/install_osm.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/installers/install_osm.sh b/installers/install_osm.sh index 50c11119..fcdcdf93 100755 --- a/installers/install_osm.sh +++ b/installers/install_osm.sh @@ -90,7 +90,7 @@ add_repo() { return 1 } -while getopts "hr:R:u:t:" o; do +while getopts ":hr:R:u:t:-:" o; do case "${o}" in h) usage && exit 0 @@ -107,6 +107,10 @@ while getopts "hr:R:u:t:" o; do t) OSM_DOCKER_TAG="${OPTARG}" ;; + -) + [ "${OPTARG}" == "help" ] && usage && exit 0 + continue + ;; *) ;; esac -- 2.25.1