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.
This commit is contained in:
Peter Feerick
2021-08-09 14:13:15 +10:00
parent f5dec4e31e
commit 76c91ac291
+2
View File
@@ -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