aboutsummaryrefslogtreecommitdiffstats
path: root/squashfu
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-01-21 08:35:30 -0500
committerDave Reisner <d@falconindy.com>2010-01-21 08:35:30 -0500
commitf70d369ed1623d4cbfc6e1dc6ef7c6f420d86ee3 (patch)
tree2503f33cb4fb6c862fa183f0684e274e7e574c8f /squashfu
parent583dac2d3729b30678e2dc9995075f00494d65ff (diff)
downloadsquashfu-f70d369ed1623d4cbfc6e1dc6ef7c6f420d86ee3.tar.gz
Polish up array error check
Diffstat (limited to 'squashfu')
-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