git.lirion.de

Of git, get, and gud

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/aptly-lirionde8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/aptly-lirionde b/bin/aptly-lirionde
index 0131fa5..2b896ec 100755
--- a/bin/aptly-lirionde
+++ b/bin/aptly-lirionde
@@ -147,9 +147,11 @@ fi
lnok
printf 'GPG pseudo operation...'
-printf 'lel\n' > /tmp/lel
-gpg -eu "$GPGKEY" -r "$GPGTESTKEY" /tmp/lel
-rm /tmp/lel* || exit 122
+MYLEL="$(mktemp --tmpdir lel.XXX)"
+printf 'lel\n' > "$MYLEL" || exit 122
+gpg -eu "$GPGKEY" -r "$GPGTESTKEY" "$MYLEL" || exit 122
+gpg -qd "${MYLEL}.gpg" > /dev/null || exit 122
+rm "$MYLEL" "${MYLEL}.gpg" || exit 122
printf ' done.\n'
lnbegin "Publishing snapshot result"