build/roms: reduce indentation in skip_board()

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2024-04-28 20:40:41 +01:00
parent 91927760db
commit 0e2c56be41
+20 -20
View File
@@ -168,27 +168,27 @@ skip_board()
printf "WARNING: %s not stable (status=%s):\n\n" \ printf "WARNING: %s not stable (status=%s):\n\n" \
"$board" "$status" "$board" "$status"
[ "$release" = "n" ] && [ "$lbmk_release" = "y" ] && \ [ "$lbmk_release" = "y" ] && [ "$release" = "n" ] && return 0
return 0 [ "$lbmk_release" = "y" ] && [ "$status" = "broken" ] && return 0
if [ "$lbmk_release" != "y" ] && [ "$status" != "stable" ] && \ [ "$lbmk_status" = "y" ] || return 1
[ "$lbmk_status" = "y" ]; then [ "$status" = "stable" ] && return 1
if [ -f "$targetdir/warn.txt" ]; then
printf "Regarding board '%s' (status '%s'):\n" \ if [ -f "$targetdir/warn.txt" ]; then
"$board" "$status" printf "Regarding board '%s' (status '%s'):\n" \
cat -u "$targetdir/warn.txt" || \ "$board" "$status"
$err "!cat $targetdir/warn.txt" cat -u "$targetdir/warn.txt" || \
fi $err "!cat $targetdir/warn.txt"
printf "\nTo disable this dialog when building, do:\n" fi
printf "export LBMK_STATUS=n\n\n" printf "\nTo disable this dialog when building, do:\n"
while true; do printf "export LBMK_STATUS=n\n\n"
printf "Board %s has status '%s'. Skip? [y/n]" \ while true; do
"$board" "$status" printf "Board %s has status '%s'. Skip? [y/n]" \
read -r skip "$board" "$status"
[ "$skip" = "y" ] && return 0 read -r skip
[ "$skip" = "n" ] && return 1; continue [ "$skip" = "y" ] && return 0
done [ "$skip" = "n" ] && return 1; continue
fi; return 1 done
} }
build_payloads() build_payloads()