iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mostly a bunch of fixes
[distro-setup]
/
mount-latest-subvol
diff --git
a/mount-latest-subvol
b/mount-latest-subvol
index 3844e7279e488d33d8f479820650a9c4c2bb895a..cddb714df7962b2fb48521800e07b471267250ff 100644
(file)
--- a/
mount-latest-subvol
+++ b/
mount-latest-subvol
@@
-38,7
+38,7
@@
EOF
exit $1
}
exit $1
}
-
+pre="mount-latest-subvol:${SSH_CLIENT:+ $HOSTNAME:}"
tu() {
while read -r line; do
tu() {
while read -r line; do
@@
-48,17
+48,17
@@
tu() {
}
d() {
if $verbose; then
}
d() {
if $verbose; then
- printf "%s\n" "$*"
+ printf "
$pre
%s\n" "$*"
fi
}
m() {
if $verbose; then
fi
}
m() {
if $verbose; then
- printf "%s\n" "$*"
+ printf "
$pre
%s\n" "$*"
fi
"$@"
}
x() {
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
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
echo "$0: exit status $ret. see error above"
fi
exit $ret