aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-01-13 09:43:30 -0500
committerDave Reisner <d@falconindy.com>2010-01-13 09:43:30 -0500
commitdde831ea31eea3e0cb5f73459fa22f86adcdfd1a (patch)
tree1c2aa3cf90d6df202e54c11790d0f34bc20382f4
parent904f8e12e3c2a8892f37191750e2027ab6d72c61 (diff)
downloadsquashfu-dde831ea31eea3e0cb5f73459fa22f86adcdfd1a.tar.gz
Fix sorting error in report. Sort apparently doesn't honor the IFS to split fields
-rwxr-xr-xsquashfu2
1 files changed, 1 insertions, 1 deletions
diff --git a/squashfu b/squashfu
index 5779658..e6b3682 100755
--- a/squashfu
+++ b/squashfu
@@ -309,7 +309,7 @@ action_report () {
# Enumerate bins, sort date order, print human readable create date and size
OLDIFS=$IFS;IFS='$:'
printf "%10s\t%25s\t%7s\n" "Bin ID" "Date Created" "Size"
- grep -vE "^[\t ]*$" "$BINVENTORY" | sort -r -k2 -n | while read bin stamp; do
+ grep -vE "^[\t ]*$" "$BINVENTORY" | sort -r -t: -k2 -n | while read bin stamp; do
printf "%10d\t%25s\t%7s\n" $bin \
"$(date --rfc-3339=seconds --date="1970-01-01 $stamp sec GMT")" \
"$(du -sh ${BINS_DIR}/$bin 2>/dev/null | awk '{print $1}')"