build/roms: reduce indentation in skip_board()

Signed-off-by: Leah Rowe <leah@libreboot.org>
audit2-merge1
Leah Rowe 2024-04-28 20:40:41 +01:00 committed by Leah Rowe
parent 3aa148aa2e
commit 3eb59000a5
1 changed files with 20 additions and 20 deletions

View File

@ -168,27 +168,27 @@ skip_board()
printf "WARNING: %s not stable (status=%s):\n\n" \
"$board" "$status"
[ "$release" = "n" ] && [ "$cbmk_release" = "y" ] && \
return 0
[ "$cbmk_release" = "y" ] && [ "$release" = "n" ] && return 0
[ "$cbmk_release" = "y" ] && [ "$status" = "broken" ] && return 0
if [ "$cbmk_release" != "y" ] && [ "$status" != "stable" ] && \
[ "$cbmk_status" = "y" ]; then
if [ -f "$targetdir/warn.txt" ]; then
printf "Regarding board '%s' (status '%s'):\n" \
"$board" "$status"
cat -u "$targetdir/warn.txt" || \
$err "!cat $targetdir/warn.txt"
fi
printf "\nTo disable this dialog when building, do:\n"
printf "export CBMK_STATUS=n\n\n"
while true; do
printf "Board %s has status '%s'. Skip? [y/n]" \
"$board" "$status"
read -r skip
[ "$skip" = "y" ] && return 0
[ "$skip" = "n" ] && return 1; continue
done
fi; return 1
[ "$cbmk_status" = "y" ] || return 1
[ "$status" = "stable" ] && return 1
if [ -f "$targetdir/warn.txt" ]; then
printf "Regarding board '%s' (status '%s'):\n" \
"$board" "$status"
cat -u "$targetdir/warn.txt" || \
$err "!cat $targetdir/warn.txt"
fi
printf "\nTo disable this dialog when building, do:\n"
printf "export CBMK_STATUS=n\n\n"
while true; do
printf "Board %s has status '%s'. Skip? [y/n]" \
"$board" "$status"
read -r skip
[ "$skip" = "y" ] && return 0
[ "$skip" = "n" ] && return 1; continue
done
}
build_payloads()