From c342ab91b3a71c6ea3e9594e89a624c72b508696 Mon Sep 17 00:00:00 2001 From: JaeyoungLim Date: Mon, 28 Sep 2020 18:48:59 +0200 Subject: [PATCH] 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 --- 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 85936d2151..300ab0f093 100755 --- a/Tools/sitl_run.sh +++ b/Tools/sitl_run.sh @@ -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