X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=mount-latest-subvol;fp=mount-latest-subvol;h=cddb714df7962b2fb48521800e07b471267250ff;hb=b37f31cdee02eab5a7a9bb083688c0a90a973e31;hp=3844e7279e488d33d8f479820650a9c4c2bb895a;hpb=28a58715872fc0f002f268369c82085da0e25b3f;p=distro-setup diff --git a/mount-latest-subvol b/mount-latest-subvol index 3844e72..cddb714 100644 --- a/mount-latest-subvol +++ b/mount-latest-subvol @@ -38,7 +38,7 @@ EOF exit $1 } - +pre="mount-latest-subvol:${SSH_CLIENT:+ $HOSTNAME:}" tu() { while read -r line; do @@ -48,17 +48,17 @@ tu() { } d() { if $verbose; then - printf "%s\n" "$*" + printf "$pre %s\n" "$*" fi } m() { if $verbose; then - printf "%s\n" "$*" + printf "$pre %s\n" "$*" fi "$@" } x() { - printf "%s\n" "$*" + printf "$pre %s\n" "$*" "$@" } @@ -477,7 +477,7 @@ for dir in /mnt/r7/amy/{root/root,boot/boot}_ubuntubionic /mnt/{root2/root,boot2 rm -f /nocow/btrfs-stale/$vol done -if (( $ret )); then +if (( ret >= 1 )); then echo "$0: exit status $ret. see error above" fi exit $ret