summaryrefslogtreecommitdiff
path: root/resources/scripts
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-05-15 01:21:20 +0100
committerLeah Rowe <leah@libreboot.org>2023-05-15 01:21:20 +0100
commitee79d8ba95ae19cc8e99919d244a4ed108697518 (patch)
tree8f35b3a999c0daa4d181f8463c9168c2d4be0830 /resources/scripts
parentf858baea93ee8ca5aa37d7458826f9a69ec84dee (diff)
download/coreboot: reduce indentation in loop
Diffstat (limited to 'resources/scripts')
-rwxr-xr-xresources/scripts/download/coreboot28
1 files changed, 12 insertions, 16 deletions
diff --git a/resources/scripts/download/coreboot b/resources/scripts/download/coreboot
index 7aa8d916..72bd28d2 100755
--- a/resources/scripts/download/coreboot
+++ b/resources/scripts/download/coreboot
@@ -87,24 +87,20 @@ download_for_board()
printf "ERROR: download/coreboot:"
printf " problem sourcing %s/board.cfg\n" ${_board}
return 1
- fi
-
- if [ "${_board}" != "${cbtree}" ]; then
+ elif [ "${_board}" != "${cbtree}" ]; then
_board="${cbtree}"
+ continue
+ elif [ "${cbtree}" = "undefined" ]; then
+ printf "ERROR: download/coreboot:"
+ printf " tree name undefined for '%s\n'" \
+ ${_board}
+ return 1
+ elif [ "${cbrevision}" = "undefined" ]; then
+ printf "ERROR: download/coreboot:"
+ printf " commit ID undefined for '%s'\n" \
+ ${_board}
+ return 1
else
- if [ "${cbtree}" = "undefined" ]; then
- printf "ERROR: download/coreboot:"
- printf " tree name undefined for '%s\n'" \
- ${_board}
- return 1
- fi
-
- if [ "${cbrevision}" = "undefined" ]; then
- printf "ERROR: download/coreboot:"
- printf " commit ID undefined for '%s'\n" \
- ${_board}
- return 1
- fi
break
fi
done