X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=nextcloud-setup;h=5affcd4640a4471dd0d050406def8cd0e50a6023;hb=e168eaa6f27cc556b7edfb9148f80905d26e21f6;hp=f2cddfc40103ba28f0aede1bfb869966c47b60dd;hpb=5abdcfce00c6ff61bf3856f7b5101915dc096107;p=distro-setup diff --git a/nextcloud-setup b/nextcloud-setup index f2cddfc..5affcd4 100755 --- a/nextcloud-setup +++ b/nextcloud-setup @@ -1,10 +1,6 @@ #!/bin/bash -if [[ -s /usr/local/lib/err ]]; then - source /usr/local/lib/err -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/err +set -e; . /usr/local/lib/bash-bear; set +e m() { printf "%s\n" "$*"; "$@"; } err-cleanup() {