release.sh: pass key passphrase on stdin

This commit is contained in:
classabbyamp 2024-02-26 14:36:57 -05:00
parent da202ebf75
commit f9551cb9ae
No known key found for this signature in database
GPG Key ID: 6BE0755918A4C7F5
1 changed files with 3 additions and 2 deletions

View File

@ -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