aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-01-09 10:49:32 -0500
committerDave Reisner <d@falconindy.com>2010-01-09 10:49:32 -0500
commit90ed9dc29541564a75589ffb746520f7011a0b98 (patch)
treebc4b79bbe13f29f8a01083109dfe971d42daa633
parent6027f2c458e731a9f93108eeed5e3b78b792c697 (diff)
downloadsquashfu-90ed9dc29541564a75589ffb746520f7011a0b98.tar.gz
Remove if statement on print_usage to maintain consistency
-rwxr-xr-xsquashfu9
1 files 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
}