Fix the world path being corrupting when spawning none-default world

This fixes a bug, where the world file path was being corrupted when using non-default world paths
This commit is contained in:
JaeyoungLim
2020-09-28 18:48:59 +02:00
committed by Daniel Agar
parent f7356d0286
commit c342ab91b3

View File

@@ -112,7 +112,7 @@ elif [ "$program" == "gazebo" ] && [ ! -n "$no_sim" ]; then
fi
else
#Spawn empty world if world with model name doesn't exist
world_path= $verbose "${src_path}/Tools/sitl_gazebo/worlds/${world}.world"
world_path="${src_path}/Tools/sitl_gazebo/worlds/${world}.world"
fi
else
if [ -f ${src_path}/Tools/sitl_gazebo/worlds/${PX4_SITL_WORLD}.world ]; then