X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=nextcloud-setup;h=5affcd4640a4471dd0d050406def8cd0e50a6023;hb=0f9a999aa601cd77343a3e08cf0c6c4f9f943813;hp=75e1625192c6260aaa11c43fcbc58cb0fd725ce6;hpb=51c8b40fd2aac71d29dc9298ca65425725ad1edd;p=distro-setup diff --git a/nextcloud-setup b/nextcloud-setup index 75e1625..5affcd4 100755 --- a/nextcloud-setup +++ b/nextcloud-setup @@ -1,10 +1,6 @@ #!/bin/bash -if [[ -s /usr/local/lib/bash-bear ]]; then - source /usr/local/lib/bash-bear -else - exit 1 -fi +set -e; . /usr/local/lib/bash-bear; set +e pre="${0##*/}:" @@ -217,7 +213,7 @@ systemctl enable --now $ncbase.timer i /usr/local/bin/ncup <<'EOFOUTER' #!/bin/bash -source /usr/local/lib/bash-bear +set -e; . /usr/local/lib/bash-bear; set +e m() { printf "%s\n" "$*"; "$@"; } err-cleanup() {