summaryrefslogtreecommitdiff
path: root/abuild-sign.in
diff options
context:
space:
mode:
Diffstat (limited to 'abuild-sign.in')
-rw-r--r--abuild-sign.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/abuild-sign.in b/abuild-sign.in
index 474d9dd..2531d55 100644
--- a/abuild-sign.in
+++ b/abuild-sign.in
@@ -15,6 +15,8 @@ if ! [ -f "$sharedir/functions.sh" ]; then
fi
. "$sharedir/functions.sh"
+gzip=$(command -v pigz || echo gzip)
+
do_sign() {
local f i keyname repo
local openssl=$(command -v openssl || echo libressl)
@@ -37,7 +39,7 @@ do_sign() {
fi
tmptargz=$(mktemp)
- tar -f - -c "$sig" | abuild-tar --cut | gzip -9 > "$tmptargz"
+ tar -f - -c "$sig" | abuild-tar --cut | $gzip -9 > "$tmptargz"
tmpsigned=$(mktemp)
cat "$tmptargz" "$i" > "$tmpsigned"
rm -f "$tmptargz" "$sig"