From d432d512149c60355ad8f844860b1cf4855eff90 Mon Sep 17 00:00:00 2001 From: layman Date: Mon, 16 May 2022 23:15:52 +0200 Subject: [PATCH] borgthismachine: stop execution at failure This makes silentlyborgthismachine more efficient --- borgthismachine.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/borgthismachine.sh b/borgthismachine.sh index 30a42bb..1973c3b 100755 --- a/borgthismachine.sh +++ b/borgthismachine.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +set -e + if [[ "$HOME" == "/" || -z "$HOME" ]] ; then HOME="/root/" fi