From 90ed9dc29541564a75589ffb746520f7011a0b98 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 9 Jan 2010 10:49:32 -0500 Subject: Remove if statement on print_usage to maintain consistency --- squashfu | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/squashfu b/squashfu index 6ddf5bb..de5c5ef 100755 --- a/squashfu +++ b/squashfu @@ -150,10 +150,6 @@ print_usage () { printf "%25s %10.2f MiB\n" "Seed size:" "$(echo "scale=2;$sfs_size / 1024 / 1024" | bc)" printf "%25s %10.2f MiB\n" "Total incremental size:" "$(echo "scale=2;$total_bin_size / 1024 / 1024" | bc)" - if [[ $total_bin_size -gt $sfs_size ]]; then - info "Your incrementals are larger than your seed! You might consider resquashing your backup with $0 --resquash" - fi - # Full query [[ $1 == "full" ]] && { echo @@ -164,6 +160,11 @@ print_usage () { done; } + # Compare seed and bin size. Suggest resquash if needed. + [[ $total_bin_size -gt $sfs_size ]] && { + info "Your incrementals are larger than your seed! You might consider resquashing your backup with $0 --resquash"; + } + exit 0 } -- cgit v1.2.3