We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17c39bf commit 131b900Copy full SHA for 131b900
sign.sh
@@ -1,7 +1,10 @@
1
#!/bin/bash
2
+set -e
3
4
gpg-agent --daemon --default-cache-ttl 7200
-echo "$GPG_PRIVATE_KEY" | cat -e | sed 's/\$/\\n/g' | gpg --import --batch --no-tty
5
+# Multiline key in an envvar gets mangled.
6
+FIXED_KEY=$(echo "$GPG_PRIVATE_KEY" | cat -e | sed 's/\$/\\n/g')
7
+echo -e $FIXED_KEY | gpg --import --batch --no-tty
8
echo "hello world" > temp.txt
9
gpg --detach-sig --yes -v --output=/dev/null --pinentry-mode loopback --passphrase "${PASSPHRASE}" temp.txt
10
cd assets ; gpg --detach-sign ${PROJECT}-${VERSION}_SHA256SUMS
0 commit comments