aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsquashfu3
1 files changed, 1 insertions, 2 deletions
diff --git a/squashfu b/squashfu
index e4d1f82..6f0653f 100755
--- a/squashfu
+++ b/squashfu
@@ -257,8 +257,7 @@ action_backup () {
/usr/bin/rsync ${RSYNC_OPTS[@]} ${INCLUDES[@]} ${EXCLUDES[@]} "$UNION_MOUNT"
rsync_ret=$?
- # TODO: convert to check for error code in array
- for $error in ${DEL_BIN_ON_FAIL[@]}; do
+ for error in ${DEL_BIN_ON_FAIL[@]}; do
if [[ $rsync_ret == $error ]]; then
warn "Unexpected hangup by rsync ($error). Deleting backup."
action_remove_bin $new_bin override