summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-05-15 00:37:12 +0100
committerLeah Rowe <leah@libreboot.org>2024-05-15 00:37:12 +0100
commit08c9f94a1abbff54d601f31519b70cdda7074ec4 (patch)
treecdbe299e1e28c0f480a582084fca8e8308556a80 /script
parent1ce7e339769c4fd38ce5a3818e5b5835a867422a (diff)
unified sha512sum creation for tarballs
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script')
-rwxr-xr-xscript/roms5
1 files changed, 1 insertions, 4 deletions
diff --git a/script/roms b/script/roms
index b48bb7a0..2908dc3a 100755
--- a/script/roms
+++ b/script/roms
@@ -472,10 +472,7 @@ moverom()
x_ cp "$1" "$2"
[ "$lbmk_release" = "y" ] || return 0
- (
- cd "${2%/*}" || $err "moverom, !cd \"${2%/*}\""
- sha512sum ./"${2##*/}" >> vendorhashes || $err "!$2 vendorhashes"
- ) || $err "Cannot create checksum for '$2'"
+ mksha512sum "${2}" "vendorhashes"
x_ ./vendor inject -r "${2}" -b "$board" -n nuke
}