aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-01-17 20:25:34 -0500
committerDave Reisner <d@falconindy.com>2010-01-17 20:25:34 -0500
commit0acba27e549951ee2e4fbbd41eb80438be1e5928 (patch)
tree4d70214bc4d7f2b37668bd4c2b45932a40307fe3
parent41c09161c890a53706e57279013716d28a28a2de (diff)
downloadsquashfu-0acba27e549951ee2e4fbbd41eb80438be1e5928.tar.gz
Provide loading message for user while bins are sized
-rwxr-xr-xsquashfu2
1 files changed, 2 insertions, 0 deletions
diff --git a/squashfu b/squashfu
index 0ae8c65..ed419d8 100755
--- a/squashfu
+++ b/squashfu
@@ -320,7 +320,9 @@ action_report () {
OLDIFS=$IFS;IFS=${IFS}:
# Collect all data into an array to 'preload' it. Index 0 is the entire
# folder. The following indicies correspond to the bin number of that index
+ printf "%30s\r" " .: Loading :."
DATA=($(du -sh ${BINS_DIR} ${BINS_DIR}/* 2>/dev/null | awk '{print $1}'))
+ printf "%30s\r" " "
printf "%10s\t%25s\t%7s\n" "Bin ID" "Date Created" "Size"
grep -vE "^[\t ]*$" "$BINVENTORY" | sort -r -t: -k2 -n | while read bin stamp; do