X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=check-subvol-stale;h=5ae7cb6b52996305e2eed53aa731777eff455d66;hb=51c8b40fd2aac71d29dc9298ca65425725ad1edd;hp=cb49379ea86a43cad3e11e1cd5f55a01573029ae;hpb=97c57fc9d533818c47b97e9b46e20a1530eac54c;p=distro-setup diff --git a/check-subvol-stale b/check-subvol-stale index cb49379..5ae7cb6 100644 --- a/check-subvol-stale +++ b/check-subvol-stale @@ -16,7 +16,7 @@ [[ $EUID == 0 ]] || exec sudo -E "${BASH_SOURCE[0]}" "$@" -source /usr/local/lib/err +source /usr/local/lib/bash-bear shopt -s nullglob @@ -77,9 +77,11 @@ stale-file() { fi } +pre="check-subvol-stale:${SSH_CLIENT:+ $HOSTNAME:}" + d() { if $verbose; then - printf "%s\n" "$*" + printf "$pre %s\n" "$*" fi }