Fix gazebo_sitl_multiple_run.sh scripting (#16340)

This commit fixes the problem when using scripting options. This regression was introduced by #15463
This commit is contained in:
JaeyoungLim 2020-12-07 06:17:15 +01:00 committed by GitHub
parent a2ff53b018
commit e8cefcafbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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[@]}]"