From f9551cb9ae947f7dceaff442225c33d0ffd1ef19 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Mon, 26 Feb 2024 14:36:57 -0500 Subject: [PATCH] release.sh: pass key passphrase on stdin --- release.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/release.sh b/release.sh index a23d01ab3..748686f9a 100755 --- a/release.sh +++ b/release.sh @@ -59,13 +59,14 @@ sign_build() { pwgen -cny 25 1 > "release/void-release-$DATECODE.key" minisign -G -p "release/void-release-$DATECODE.pub" \ -s "release/void-release-$DATECODE.sec" \ - -c "This key is only valid for images with date $DATECODE." + -c "This key is only valid for images with date $DATECODE." \ + < <(cat "release/void-release-$DATECODE.key" "release/void-release-$DATECODE.key") echo "Signing $SUMFILE..." minisign -S -x "${SUMFILE//txt/sig}" -s "release/void-release-$DATECODE.sec" \ -c "This key is only valid for images with date $DATECODE." \ -t "This key is only valid for images with date $DATECODE." \ - -m "$SUMFILE" + -m "$SUMFILE" < "release/void-release-$DATECODE.key" } case "$1" in