summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-05-05 04:41:51 +0100
committerLeah Rowe <leah@libreboot.org>2024-05-05 04:41:51 +0100
commitd13d930804a8854b3b170a06f891ecb0e3cc136d (patch)
tree6c2affb24526ecf398bcd5b527d27aca647538dc /script
parentae9e73890fa915511464d781ae3109fabd9def0e (diff)
build/roms: allow searching status by mismatch
for example: ./build roms list stable this lists all images that are marked "stable" now: ./build roms list _stable this lists all images that are *not* marked stable this will help me keep track during development Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script')
-rwxr-xr-xscript/build/roms12
1 files changed, 10 insertions, 2 deletions
diff --git a/script/build/roms b/script/build/roms
index 0b10e78a..0e292243 100755
--- a/script/build/roms
+++ b/script/build/roms
@@ -74,8 +74,16 @@ main()
if [ "$listboards" = "y" ]; then
[ -z "$list_type" ] && printf "%s\n" "$board"
for _list_type in $list_type; do
- [ "$status" != "$_list_type" ] && continue
- printf "%s\n" "$board"
+ if [ "${_list_type#_}" = "$_list_type" ]; then
+ [ "$status" != "$_list_type" ] && \
+ continue
+ printf "%s\n" "$board"
+ else
+ [ "$status" = "${_list_type#_}" ] && \
+ continue
+ printf "%s\n" "$board"
+ break
+ fi
done; continue
fi