mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-18 04:22:15 +02:00
build/roms: reduce indentation in skip_board()
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+20
-20
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user