diff options
author | Dave Reisner <d@falconindy.com> | 2010-01-21 08:35:30 -0500 |
---|---|---|
committer | Dave Reisner <d@falconindy.com> | 2010-01-21 08:35:30 -0500 |
commit | f70d369ed1623d4cbfc6e1dc6ef7c6f420d86ee3 (patch) | |
tree | 2503f33cb4fb6c862fa183f0684e274e7e574c8f /squashfu | |
parent | 583dac2d3729b30678e2dc9995075f00494d65ff (diff) | |
download | squashfu-f70d369ed1623d4cbfc6e1dc6ef7c6f420d86ee3.tar.gz |
Polish up array error check
Diffstat (limited to 'squashfu')
-rwxr-xr-x | squashfu | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 |