iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
shellcheck, better automated upgrades
[distro-setup]
/
install-my-scripts
diff --git
a/install-my-scripts
b/install-my-scripts
index 42a6d2d7b4b8d8a4725aa40baddefa6eebc2d23b..0e36a4f86ec8f91db051b49f9c34cc115fc50a37 100755
(executable)
--- a/
install-my-scripts
+++ b/
install-my-scripts
@@
-23,12
+23,12
@@
set -eE -o pipefail
trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
set -eE -o pipefail
trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
-[[ $EUID == 0 ]] || exec sudo -E "$
BASH_SOURCE
" "$@"
+[[ $EUID == 0 ]] || exec sudo -E "$
{BASH_SOURCE[0]}
" "$@"
-x="$(readlink -f
"$BASH_SOURCE")"; cd ${x%/*}
+x="$(readlink -f
-- "${BASH_SOURCE[0]}")"; cd ${x%/*} # directory of this file
-e() { echo "$*"; "$@"; }
-
# scripts that would interfere with unmounting /a, put them elsewhere
# scripts that would interfere with unmounting /a, put them elsewhere
-e install mail-cert-cron mount-latest-subvol check-subvol-stale /usr/local/bin
+install /a/bin/log-quiet/log-once switch-mail-host btrbk-run mount-latest-subvol \
+ check-subvol-stale /usr/local/bin
+install /a/bin/errhandle/err /usr/local/lib