Make Synaptics update fail sooner if FW isnt found

This is a second attempt at fixing the logs output on Synaptics touch FW
updater.  When a FW wasn't found on disk there was a lot of extra logs
output that makes it hard to read.  This CL makes the script fail out
sooner, if no FW is found which makes the logs easier to read.
This is essentially the same approach as the first fix (that got
reverted) except that the if conditional has been reformatted to work
with sh better.  Previously a bash vs sh issue cause the conditional to
be evaluated incorrectly.

BUG=chromium:613719
TEST=This was the fix I found when debugging when the last version
failed.  The conditional seems to work correctly now

Change-Id: Id1c687b559cba9081b3b0a0fdf102ad1352aedb1
Signed-off-by: Charlie Mooney <charliemooney@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/354135
Reviewed-by: Dennis Kempin <denniskempin@google.com>
1 file changed
tree: 48cdbfddb45011b1a1dc97f66b8b84b9d5bd38f9
  1. scripts/
  2. LICENSE
  3. OWNERS
  4. README