summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-11-16 11:21:53 +0100
committerErich Eckner <git@eckner.net>2018-11-16 11:21:53 +0100
commit95547bc7cc1e6211ef36d42d16fea6958bea27ee (patch)
treebcab001bb344c2558d3491971c6221f5e178ce0b
parent825fa0d6638f2e1afddfbce447c4fdf51330e493 (diff)
downloadbuilder-95547bc7cc1e6211ef36d42d16fea6958bea27ee.tar.xz
bin/build-packages: add check for empty checksum
-rwxr-xr-xbin/build-packages1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/build-packages b/bin/build-packages
index 80e5d5a..3493950 100755
--- a/bin/build-packages
+++ b/bin/build-packages
@@ -564,6 +564,7 @@ while [ "${count}" -ne 0 ] && \
mkdir "${package_content_dir}/${pkgfile##*/}"
tar -C "${package_content_dir}/${pkgfile##*/}" -xJf "${pkgfile}" 2>/dev/null
# we rely on "${checksum}" not appearing in any objdump output
+ : ${checksum?umm, checksum is unset - this will break below sed-fu}
find "${package_content_dir}/${pkgfile##*/}" \
-name 'opt' -prune , \
-type f \