diff options
author | Dave Reisner <d@falconindy.com> | 2010-01-13 09:43:30 -0500 |
---|---|---|
committer | Dave Reisner <d@falconindy.com> | 2010-01-13 09:43:30 -0500 |
commit | dde831ea31eea3e0cb5f73459fa22f86adcdfd1a (patch) | |
tree | 1c2aa3cf90d6df202e54c11790d0f34bc20382f4 /squashfu | |
parent | 904f8e12e3c2a8892f37191750e2027ab6d72c61 (diff) | |
download | squashfu-dde831ea31eea3e0cb5f73459fa22f86adcdfd1a.tar.gz |
Fix sorting error in report. Sort apparently doesn't honor the IFS to split fields
Diffstat (limited to 'squashfu')
-rwxr-xr-x | squashfu | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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}')" |