diff --git a/scripts/restic/restic.sh b/scripts/restic/restic.sh index 9c2e483..82b4728 100755 --- a/scripts/restic/restic.sh +++ b/scripts/restic/restic.sh @@ -4,6 +4,7 @@ # license: MIT # exit on error +set -e # check permissions [[ "$EUID" != 0 ]] && printf "error: permission denied!\n" >&2 && exit 1