aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-01-19 21:09:19 -0500
committerDave Reisner <d@falconindy.com>2010-01-19 21:09:19 -0500
commitfe7d5f6e8d552f59d2f170eb340e1b6c5b2ab91e (patch)
treef489579ccca1b769341a707dfe244879464164be
parent480d9996835339abaf954fa26296cf9a24bd1928 (diff)
downloadsquashfu-fe7d5f6e8d552f59d2f170eb340e1b6c5b2ab91e.tar.gz
Warn when rsync hangs up unexpectedly and we pass off to remove_bin
-rwxr-xr-xsquashfu1
1 files changed, 1 insertions, 0 deletions
diff --git a/squashfu b/squashfu
index bcf1cbc..cedd6ae 100755
--- a/squashfu
+++ b/squashfu
@@ -257,6 +257,7 @@ action_backup () {
/usr/bin/rsync ${RSYNC_OPTS[@]} ${INCLUDES[@]} ${EXCLUDES[@]} "$UNION_MOUNT"
if [[ $? -gt 0 && $DEL_BIN_ON_FAIL == "true" ]]; then
+ warn "Unexpected hangup by rsync. Deleting backup."
action_remove_bin $new_bin override
fi