download/coreboot: reduce indentation in loop

This commit is contained in:
Leah Rowe
2023-05-15 01:21:20 +01:00
parent f858baea93
commit ee79d8ba95
+5 -9
View File
@@ -87,24 +87,20 @@ download_for_board()
printf "ERROR: download/coreboot:" printf "ERROR: download/coreboot:"
printf " problem sourcing %s/board.cfg\n" ${_board} printf " problem sourcing %s/board.cfg\n" ${_board}
return 1 return 1
fi elif [ "${_board}" != "${cbtree}" ]; then
if [ "${_board}" != "${cbtree}" ]; then
_board="${cbtree}" _board="${cbtree}"
else continue
if [ "${cbtree}" = "undefined" ]; then elif [ "${cbtree}" = "undefined" ]; then
printf "ERROR: download/coreboot:" printf "ERROR: download/coreboot:"
printf " tree name undefined for '%s\n'" \ printf " tree name undefined for '%s\n'" \
${_board} ${_board}
return 1 return 1
fi elif [ "${cbrevision}" = "undefined" ]; then
if [ "${cbrevision}" = "undefined" ]; then
printf "ERROR: download/coreboot:" printf "ERROR: download/coreboot:"
printf " commit ID undefined for '%s'\n" \ printf " commit ID undefined for '%s'\n" \
${_board} ${_board}
return 1 return 1
fi else
break break
fi fi
done done