Fix bash error when running SITL Gazebo (#16221)

This commit is contained in:
JaeyoungLim 2020-11-18 04:23:19 +01:00 committed by GitHub
parent fabeb22ae4
commit 5e693180d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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