mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
inject.sh: condense check_release
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+2
-4
@@ -58,12 +58,10 @@ check_release()
|
||||
[ -z "$archivename" ] && err "Can't determine archive name"
|
||||
|
||||
case "$archivename" in
|
||||
*_src.tar.xz)
|
||||
err "'$archive' is a src archive, silly!" ;;
|
||||
*_src.tar.xz) err "'$archive' is a src archive, silly!" ;;
|
||||
*.tar.xz) _stripped_prefix="${archivename#*_}"
|
||||
board="${_stripped_prefix%.tar.xz}" ;;
|
||||
*)
|
||||
err "'$archive': could not detect board type"
|
||||
*) err "'$archive': could not detect board type"
|
||||
esac; :
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user