diff options
author | Leah Rowe <leah@libreboot.org> | 2025-05-27 11:32:11 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-05-27 11:32:11 +0100 |
commit | 46f7d48c8d7a7390a55e3c3bff914b68881a34bd (patch) | |
tree | 9174aa886339f78e48fe99ffd2b1ce402c51f7fe /include | |
parent | bc9ea0a1aa08bfebac35c458c030f71e2c2d0614 (diff) |
inject.sh: simplify. and remove unnecessary check
checking whether archivename is empty isn't needed, because
the case/switch afterward would catch this condition.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/inject.sh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/inject.sh b/include/inject.sh index de97de71..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,10 +52,8 @@ 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!" ;; |