summaryrefslogtreecommitdiff
path: root/abuild-sign.in
diff options
context:
space:
mode:
Diffstat (limited to 'abuild-sign.in')
-rw-r--r--abuild-sign.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/abuild-sign.in b/abuild-sign.in
index 86b3b15..aea651f 100644
--- a/abuild-sign.in
+++ b/abuild-sign.in
@@ -73,12 +73,11 @@ for f in "$@"; do
cd "$repo" || die "Failed to sign $i"
sig=".SIGN.RSA.$keyname"
openssl dgst -sha1 -sign "$privkey" -out "$sig" "$i" || die "Failed to sign $i"
- cd "$repo"
tmptargz=$(mktemp)
tar -c "$sig" | abuild-tar --cut | gzip -9 > "$tmptargz"
tmpsigned=$(mktemp)
cat "$tmptargz" "$i" > "$tmpsigned"
- rm -f "$tmptargz"
+ rm -f "$tmptargz" "$sig"
mv "$tmpsigned" "$i"
chmod 644 "$i"
if [ -z "$quiet" ]; then