From a0ca42dd1c349639dcc9cc93110c1851419574de Mon Sep 17 00:00:00 2001 From: antoniobrandi Date: Fri, 4 Mar 2022 14:55:13 +0100 Subject: [PATCH] Fixed number for the parameter multiple --- scripts/navigation.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/navigation.sh b/scripts/navigation.sh index f1b8878..116f5bd 100755 --- a/scripts/navigation.sh +++ b/scripts/navigation.sh @@ -43,17 +43,17 @@ fi # rm -rf $MAP #fi -if [ $# -lt 7 ]; then +if [ $# -lt 10 ]; then MULTI="false" ROBOT_NAMESPACE="" else - if [ "$7" = "true" ]; then - if [ $# -lt 8 ]; then + if [ "$10" = "true" ]; then + if [ $# -lt 11 ]; then echo "If MULTI is true I need the robot_namespace" exit 1 else MULTI="true" - ROBOT_NAMESPACE=$8 + ROBOT_NAMESPACE=$11 fi else MULTI="false"