From ae4ed87a311fad5664847b793c910221eec65507 Mon Sep 17 00:00:00 2001 From: JaeyoungLim Date: Wed, 24 Jun 2020 09:12:44 +0200 Subject: [PATCH] Simplify getting sim PID Follow up of https://github.com/PX4/Firmware/pull/15206#pullrequestreview-436356707 --- 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 1b7a30a674..324969718e 100755 --- a/Tools/sitl_run.sh +++ b/Tools/sitl_run.sh @@ -104,7 +104,7 @@ elif [ "$program" == "gazebo" ] && [ ! -n "$no_sim" ]; then gzserver "$PX4_SITL_WORLD" & fi fi - SIM_PID=`echo $!` + SIM_PID=$! gz model --spawn-file="${src_path}/Tools/sitl_gazebo/models/${model}/${model}.sdf" --model-name=${model} -x 1.01 -y 0.98 -z 0.83