From 5e693180d9dc64c3270f2dc3b9c5f432c4cefd36 Mon Sep 17 00:00:00 2001 From: JaeyoungLim Date: Wed, 18 Nov 2020 04:23:19 +0100 Subject: [PATCH] Fix bash error when running SITL Gazebo (#16221) --- Tools/sitl_run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/sitl_run.sh b/Tools/sitl_run.sh index 845a1eca98..5745a039a2 100755 --- a/Tools/sitl_run.sh +++ b/Tools/sitl_run.sh @@ -131,7 +131,7 @@ elif [ "$program" == "gazebo" ] && [ ! -n "$no_sim" ]; then readarray -d : -t paths <<< ${GAZEBO_MODEL_PATH} for possibleModelPath in "${paths[@]}"; do # trim \r from path - possibleModelPath = $(echo $possibleModelPath | tr -d '\r') + possibleModelPath=$(echo $possibleModelPath | tr -d '\r') if test -f "${possibleModelPath}/${model}/${model}.sdf" ; then modelpath=$possibleModelPath break