project-lakitu: Improve the error handling in configure script

BUG=b/196257748
TEST=presubmit and tested with a failing bash script
RELEASE_NOTE=None

Change-Id: Ic32a746dc2efdbd601866aef3c77dc37e4162c49
Reviewed-on: https://cos-review.googlesource.com/c/cos/overlays/board-overlays/+/20999
Reviewed-by: Vaibhav Rustagi <vaibhavrustagi@google.com>
Tested-by: Cusky Presubmit Bot <presubmit@cos-infra-prod.iam.gserviceaccount.com>
2 files changed