From e8cefcafbcb93f83680505e71ca3bb2a290626c1 Mon Sep 17 00:00:00 2001 From: JaeyoungLim Date: Mon, 7 Dec 2020 06:17:15 +0100 Subject: [PATCH] Fix gazebo_sitl_multiple_run.sh scripting (#16340) This commit fixes the problem when using scripting options. This regression was introduced by #15463 --- Tools/gazebo_sitl_multiple_run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/gazebo_sitl_multiple_run.sh b/Tools/gazebo_sitl_multiple_run.sh index 3c380c8cf5..38b6e5a5bb 100755 --- a/Tools/gazebo_sitl_multiple_run.sh +++ b/Tools/gazebo_sitl_multiple_run.sh @@ -17,7 +17,7 @@ function spawn_model() { N=$2 #Instance Number SUPPORTED_MODELS=("iris" "iris_rtps" "plane" "standard_vtol" "rover" "r1_rover" "typhoon_h480") - if [[ " ${SUPPORTED_MODELS[*]} " != *"$MODEL "* ]]; + if [[ " ${SUPPORTED_MODELS[*]} " != *"$MODEL"* ]]; then echo "ERROR: Currently only vehicle model $MODEL is not supported!" echo " Supported Models: [${SUPPORTED_MODELS[@]}]"