From fb24a54ca4ed5ebdb620fcfab7583c12e6214221 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Mon, 23 Nov 2015 13:51:18 +0100 Subject: [PATCH] SITL run: Always execute cleanup action --- Tools/sitl_run.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tools/sitl_run.sh b/Tools/sitl_run.sh index 5375e50578..2b535c5e12 100755 --- a/Tools/sitl_run.sh +++ b/Tools/sitl_run.sh @@ -78,6 +78,10 @@ cd $build_path/src/firmware/posix mkdir -p rootfs/fs/microsd mkdir -p rootfs/eeprom touch rootfs/eeprom/parameters + +# Do not exit on failure now from here on because we want the complete cleanup +set +e + # Start Java simulator if [ "$debugger" == "lldb" ] then