improve licensing
[distro-setup] / nextcloud-setup
index f2cddfc40103ba28f0aede1bfb869966c47b60dd..3026af75d46586ae31951db02a9a75d6dadbe767 100755 (executable)
@@ -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##*/}:"
@@ -25,6 +21,7 @@ i() { # install file
   tmp=$(rsync -ic $tmpdir/"$base" "$dest")
   if [[ $tmp ]]; then
     printf "%s\n" "$tmp"
+    # shellcheck disable=SC2034
     ir=true
     if [[ $dest == /etc/systemd/system/* ]]; then
       touch /var/local/mail-setup-reload
@@ -217,7 +214,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() {