From 76c91ac2911151c5eefa18f091e799449cf54f07 Mon Sep 17 00:00:00 2001 From: Peter Feerick Date: Mon, 9 Aug 2021 14:13:15 +1000 Subject: [PATCH] Halt execution on first error If you're not going to check the return status of each command at least halt the script at the first error rather than blindly continuing. --- tools/setup_buildenv_ubuntu20.04.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/setup_buildenv_ubuntu20.04.sh b/tools/setup_buildenv_ubuntu20.04.sh index cce914737..b6eaf42ec 100644 --- a/tools/setup_buildenv_ubuntu20.04.sh +++ b/tools/setup_buildenv_ubuntu20.04.sh @@ -1,5 +1,7 @@ #! /usr/bin/env bash +set -x + ## Bash script to setup EdgeTX v2.4 development environment on Ubuntu 20.04 running on bare-metal or in a virtual machine. ## Does NOT work with WSL/WSL2 under Windows 10! ## Let it run as normal user and when asked, give sudo credentials