Browse Source

More status code checking

Signed-off-by:	Shawn Webb <shawn.webb@hardenedbsd.org>
pull/4/head
Shawn Webb 9 months ago
parent
commit
459da4a6f4
Signed by: Shawn Webb <shawn.webb@hardenedbsd.org> GPG Key ID: FF2E67A277F8E1FA
1 changed files with 12 additions and 1 deletions
  1. +12
    -1
      lib/build.sh

+ 12
- 1
lib/build.sh View File

@@ -72,6 +72,7 @@ build_release() {
stage_release() {
local f
local file
local res

mkdir -p \
${HBSD_STAGEDIR} \
@@ -84,13 +85,23 @@ stage_release() {
-o -name 'MANIFEST'); do
f=${file##*/}
mv ${file} ${HBSD_STAGEDIR}/${f}
res=${?}
if [ ${res} -gt 0 ]; then
return ${res}
fi
xz -kc9 ${HBSD_STAGEDIR}/${f} > ${HBSD_STAGEDIR}/${f}.xz
res=${?}
if [ ${res} -gt 0 ]; then
return ${res}
fi
done
return 0
}

sign_release() {
(
set -ex

cd ${HBSD_STAGEDIR}
for file in $(find . \
-name '*.txz' \
@@ -109,5 +120,5 @@ sign_release() {
fi
done
)
return 0
return ${?}
}

Loading…
Cancel
Save