From 7a5c78a35ed4a2000e0196c7c7257e3c718d5c37 Mon Sep 17 00:00:00 2001 From: Harald Pfeiffer Date: Tue, 14 Jan 2025 20:06:11 +0100 Subject: don't only encrypt. decrypt, too, to trigger secret operation. --- bin/aptly-lirionde | 8 +++++--- 1 file 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" -- cgit v1.2.3