diff options
author | Dave Reisner <d@falconindy.com> | 2010-01-09 10:49:32 -0500 |
---|---|---|
committer | Dave Reisner <d@falconindy.com> | 2010-01-09 10:49:32 -0500 |
commit | 90ed9dc29541564a75589ffb746520f7011a0b98 (patch) | |
tree | bc4b79bbe13f29f8a01083109dfe971d42daa633 | |
parent | 6027f2c458e731a9f93108eeed5e3b78b792c697 (diff) | |
download | squashfu-90ed9dc29541564a75589ffb746520f7011a0b98.tar.gz |
Remove if statement on print_usage to maintain consistency
-rwxr-xr-x | squashfu | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 } |