Fix bug 896 11/8211/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 22 Nov 2019 09:09:40 +0000 (10:09 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 22 Nov 2019 09:09:40 +0000 (10:09 +0100)
Change-Id: I5f49bf38d6f72030d818d148e488f7d248165f67
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
installers/install_osm.sh

index 50c1111..fcdcdf9 100755 (executable)
@@ -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