aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
}