From a23ba97f3f40b6ec6e5ddd603e9daf371e2e1c8a Mon Sep 17 00:00:00 2001
From: jgoppert <james.goppert@gmail.com>
Date: Sun, 25 Oct 2015 12:25:15 -0400
Subject: [PATCH] sitl bash fix for pid recording

---
 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 98a50bfb04..943cf05cda 100755
--- a/Tools/sitl_run.sh
+++ b/Tools/sitl_run.sh
@@ -38,7 +38,7 @@ then
 	if [ -x "$(command -v gazebo)" ]
 	then
 		gazebo ${SITL_GAZEBO_PATH}/worlds/iris.world &
-		SIM_PID=echo $!
+		SIM_PID=`echo $!`
 	else
 		echo "You need to have gazebo simulator installed!"
 		exit 1
-- 
GitLab