Skip to content

Commit

Permalink
release.sh: pass key passphrase on stdin
Browse files Browse the repository at this point in the history
  • Loading branch information
classabbyamp committed Feb 26, 2024
1 parent da202eb commit f9551cb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f9551cb

Please sign in to comment.