summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xutil/flash_ec2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/flash_ec b/util/flash_ec
index 9254a21155..c387427329 100755
--- a/util/flash_ec
+++ b/util/flash_ec
@@ -288,7 +288,7 @@ on_servov3() {
error_reported= # Avoid double printing the error message.
on_raiden() {
if [ -z "${BOARD}" ]; then
- return 0
+ [ "${FLAGS_raiden}" = ${FLAGS_TRUE} ] && return 0 || return 1
fi
if [ "${FLAGS_raiden}" = ${FLAGS_TRUE} ]; then
if in_array "${BOARDS_RAIDEN[@]}" "${BOARD}"; then