diff options
author | Leah Rowe <leah@libreboot.org> | 2025-05-27 21:49:01 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-05-27 21:49:01 +0100 |
commit | 62d5fea0d254ef1bc66fc4b3871668e6090fc85a (patch) | |
tree | 48862ac15517504b1837026e38b0aae47d1088bf /include/inject.sh | |
parent | f66265eb6cce45bdf75604894e8bcb4052c3c99d (diff) | |
parent | 00d99adb5c1e0343bf889a260ea57b1292a3bc9c (diff) |
Merge branch 'master' into 25.06_branch25.06_branch
Diffstat (limited to 'include/inject.sh')
-rw-r--r-- | include/inject.sh | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/include/inject.sh b/include/inject.sh index a58acc81..9354b439 100644 --- a/include/inject.sh +++ b/include/inject.sh @@ -38,7 +38,7 @@ inject() esac [ "$new_mac" = "keep" ] && new_mac="" - check_release + x_ e "$archive" f && check_release check_target && patch_release [ "$xchanged" = "y" ] && remktar @@ -52,20 +52,14 @@ inject() check_release() { [ -L "$archive" ] && err "'$archive' is a symlink" - e "$archive" f missing && err "'$archive' missing" archivename="`basename "$archive"`" || err "Can't get '$archive' name" - [ -z "$archivename" ] && err "Can't determine archive name" case "$archivename" in - *_src.tar.xz) - err "'$archive' is a src archive, silly!" ;; - grub_*|seagrub_*|custom_*|seauboot_*|seabios_withgrub_*) - err "'$archive' is a ROM image (it must be a tarball)" ;; + *_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; : } |