From f70d369ed1623d4cbfc6e1dc6ef7c6f420d86ee3 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Thu, 21 Jan 2010 08:35:30 -0500 Subject: Polish up array error check --- squashfu | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3