Don't kill if jmavsim not found.

This commit is contained in:
jgoppert
2015-10-25 12:33:48 -04:00
committed by Lorenz Meier
parent a23ba97f3f
commit f831cc6cfa
+6 -1
View File
@@ -20,7 +20,12 @@ fi
# kill process names that might stil
# be running from last time
pkill mainapp
kill -9 `jps | grep Simulator | cut -d" " -f1`
jmavsim_pid=`jps | grep Simulator | cut -d" " -f1`
echo jmavsim_pid=\"${jmavsim_pid}\"
if [ -n "$jmavsim_pid" ]
then
kill $jmavsim_pid
fi
cp Tools/posix_lldbinit $build_path/src/firmware/posix/.lldbinit
cp Tools/posix.gdbinit $build_path/src/firmware/posix/.gdbinit