diff --git a/chip-fel-flash.sh b/chip-fel-flash.sh index adcb10a..0f2ba8f 100755 --- a/chip-fel-flash.sh +++ b/chip-fel-flash.sh @@ -127,9 +127,9 @@ assert_error() { if [ "${ERR}" != "0" ]; then if [ -z "${ERR}" ]; then exit ${ERR} + else + exit ${ERRCODE} fi - else - exit ${ERRCODE} fi }