From 22f220cd2fcc7517bdb9ec5c1ebaf67b546d6ec5 Mon Sep 17 00:00:00 2001 From: mattia Date: Wed, 11 Aug 2021 22:32:31 +0200 Subject: [PATCH] Abort if a command fails With this shell attribute, the script will abort if any of the executed commands exits with a non-zero status. --- setupfedora.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setupfedora.sh b/setupfedora.sh index 464dec0..ba4419a 100755 --- a/setupfedora.sh +++ b/setupfedora.sh @@ -1,2 +1,4 @@ #!/bin/bash -### Setup Fedora ### \ No newline at end of file +### Setup Fedora ### +# Abort on errors +set -e \ No newline at end of file