summaryrefslogtreecommitdiff
path: root/include/vendor.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-29 01:47:14 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-29 01:47:14 +0100
commit972e61070b1c087c03f9cf850345d500d4d90151 (patch)
tree5afd55f4153a3e9f7290ddee01b119363be58846 /include/vendor.sh
parentbf5acedb1277c2b32cde46e8986cff78655e68ab (diff)
vendor.sh: condense detect_board() a bit
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/vendor.sh')
-rwxr-xr-xinclude/vendor.sh9
1 files changed, 3 insertions, 6 deletions
diff --git a/include/vendor.sh b/include/vendor.sh
index b0bd2ae9..0c9a3712 100755
--- a/include/vendor.sh
+++ b/include/vendor.sh
@@ -264,17 +264,14 @@ detect_board()
path="$1"
filename="$(basename "$path")"
case "$filename" in
- grub_*)
- board="$(echo "$filename" | cut -d '_' -f2-3)" ;;
+ grub_*) board="$(echo "$filename" | cut -d '_' -f2-3)" ;;
seabios_withgrub_*)
board="$(echo "$filename" | cut -d '_' -f3-4)" ;;
*.tar.xz)
_stripped_prefix="${filename#*_}"
board="${_stripped_prefix%.tar.xz}" ;;
- *)
- $err "detect_board $filename: could not detect board type"
- esac
- printf "%s\n" "$board"
+ *) $err "detect_board $filename: could not detect board type"
+ esac; printf "%s\n" "$board"
}
readcfg()