iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
misc fixes and improvements
[distro-setup]
/
check-subvol-stale
diff --git
a/check-subvol-stale
b/check-subvol-stale
index 3d649886c39bbe283d9cd17446793a5130fd19ac..a3d0149e24fa574ccec2d62a5e427db81935851e 100644
(file)
--- a/
check-subvol-stale
+++ b/
check-subvol-stale
@@
-172,7
+172,7
@@
for d; do
for s in ${snaps[@]}; do
f=${s##*/}
unix_time=$(date -d $(sed -r 's/(.{4})(..)(.{5})(..)(.*)/\1-\2-\3:\4:\5/' <<<${f#$vol.}) +%s)
for s in ${snaps[@]}; do
f=${s##*/}
unix_time=$(date -d $(sed -r 's/(.{4})(..)(.{5})(..)(.*)/\1-\2-\3:\4:\5/' <<<${f#$vol.}) +%s)
- printf "%s %s\n" $unix_time $s
+ printf "%s %s\n" $unix_time $s
# part of the pipeline
# sort will fail
done | sort -r | head -n 1 | awk '{print $2}' || [[ ${PIPESTATUS[1]} == 141 || ${PIPESTATUS[0]} == 32 ]]
)
# sort will fail
done | sort -r | head -n 1 | awk '{print $2}' || [[ ${PIPESTATUS[1]} == 141 || ${PIPESTATUS[0]} == 32 ]]
)