Add "set -eo pipefail" to obmc-flash-bmc
Have seen failures that weren't detected in obmc-flash-bmc.
Move to "set -eo pipefail", so all failures will cause the
script to fail and exit. Removed checks for the rc. Also,
removed the ubi attach command since done in U-Boot now.
Added a check for if the ubi block exists, so not get a
failure when it does exist already.
Resolves openbmc/openbmc#2801
Change-Id: Iaa60d041d1247761fd25a8ae33421f7b3c7335dd
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
1 file changed