Commit 7a628e7d authored by Dubiousjim's avatar Dubiousjim Committed by Natanael Copa

abuild-sign: fix a race condition

parent ad611237
......@@ -35,8 +35,8 @@ do_sign() {
tmpsigned=$(mktemp)
cat "$tmptargz" "$i" > "$tmpsigned"
rm -f "$tmptargz" "$sig"
chmod 644 "$tmpsigned"
mv "$tmpsigned" "$i"
chmod 644 "$i"
if [ -z "$quiet" ]; then
echo "Signed $i"
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment