summaryrefslogtreecommitdiff
path: root/resources/scripts/build/release
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-05-20 19:35:36 +0100
committerLeah Rowe <leah@libreboot.org>2023-05-20 19:35:36 +0100
commit681538a20c493235ee662a006ca689a544b3f877 (patch)
tree00ccf8b6a711d201cea13b4bc61f4b71dd26df73 /resources/scripts/build/release
parenta9bd54423c0c6e022ec98c61bd9d3f5700f6cc71 (diff)
build/release/roms: handle errors inside subshell
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'resources/scripts/build/release')
-rwxr-xr-xresources/scripts/build/release/roms4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/scripts/build/release/roms b/resources/scripts/build/release/roms
index 2104711f..4ba768bf 100755
--- a/resources/scripts/build/release/roms
+++ b/resources/scripts/build/release/roms
@@ -132,8 +132,8 @@ purge_blobs()
> "${romdir}/blobhashes"
fi
(
- cd ${romdir}
- sha1sum *.rom >> blobhashes
+ cd ${romdir} || err "subshell: cd"
+ sha1sum *.rom >> blobhashes || err "subshell: sha1sum"
)
for romfile in "${romdir}"/*.rom