mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Fix bash error when running SITL Gazebo (#16221)
This commit is contained in:
parent
fabeb22ae4
commit
5e693180d9
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user