diff options
author | Leah Rowe <leah@libreboot.org> | 2025-05-27 11:28:49 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-05-27 11:28:49 +0100 |
commit | ad851804b8598b1bea0e349e0e834b06b0c98b92 (patch) | |
tree | 6af665613b4ca447b9bb1fe7e17960e05b491f83 | |
parent | 49a258eafc5f84ec0f1a7e7b7b9453e2befe80f9 (diff) |
inject.sh: condense check_release
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r-- | include/inject.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/inject.sh b/include/inject.sh index 7f98f3dc..80ab8b49 100644 --- a/include/inject.sh +++ b/include/inject.sh @@ -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; : } |