From 2706f574bca86c76872303ed1b47f3282610ab92 Mon Sep 17 00:00:00 2001 From: Wynter Woods Date: Sun, 13 Sep 2015 06:35:59 -0700 Subject: [PATCH] We also need an error code here. --- chip-update-firmware.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chip-update-firmware.sh b/chip-update-firmware.sh index 9e03005..07f6816 100755 --- a/chip-update-firmware.sh +++ b/chip-update-firmware.sh @@ -48,5 +48,5 @@ cache_download "${FW_IMAGE_DIR}" uboot-env.bin cache_download "${FW_IMAGE_DIR}" zImage cache_download "${FW_IMAGE_DIR}" u-boot-dtb.bin -BUILDROOT_OUTPUT_DIR="${FW_DIR}" ${FLASH_SCRIPT} - +RETURNVAL=$(BUILDROOT_OUTPUT_DIR="${FW_DIR}" ${FLASH_SCRIPT}) +exit $(( ${RETURNVAL} ))