umount wrapper: fix inverted logic

The current logic exits when the output *is* "device is busy" when it
should be exiting when the output *isn't*.

BUG=chromium-os:23443
TEST=`./mod_image_for_recovery.sh` works again

Change-Id: I78eef746611de1044da664f32f8ec5e3b22b21f7
Reviewed-on: https://gerrit.chromium.org/gerrit/33170
Reviewed-by: Brian Harring <ferringb@chromium.org>
Commit-Ready: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
This commit is contained in:
Mike Frysinger 2012-09-13 00:00:04 -04:00 committed by Gerrit
parent 4bf9456c7a
commit cc6d7b12a0

View File

@ -21,7 +21,7 @@ for x in {1..10}; do
# the output. # the output.
output=$(LC_ALL=C "${binary}" "$@" 2>&1) output=$(LC_ALL=C "${binary}" "$@" 2>&1)
ret=$? ret=$?
if [ ${ret} -eq 0 ] || [[ "${output}" == *"device is busy"* ]]; then if [ ${ret} -eq 0 ] || [[ "${output}" != *"device is busy"* ]]; then
# Nothing to do in these scenarios; either ran fine, or it failed in a non # Nothing to do in these scenarios; either ran fine, or it failed in a non
# busy fashion. # busy fashion.
break break