From 56fb5f8256c1da1120fd8b9c7286a1406cbca38f Mon Sep 17 00:00:00 2001 From: Max Mehl Date: Wed, 13 Dec 2023 11:49:21 +0100 Subject: [PATCH] make script fail fast --- uberspace-backup.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/uberspace-backup.sh b/uberspace-backup.sh index 8adc9e6..670b395 100755 --- a/uberspace-backup.sh +++ b/uberspace-backup.sh @@ -9,6 +9,9 @@ # ######################################################################## +# Fail fast on errors +set -Eeuo pipefail + # Set correct UTF-8 encoding (for FreeBSD jail) export LC_ALL=en_US.UTF-8