File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
developers/committers/release-process Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -98,9 +98,16 @@ Verify the hashes and signatures of artifacts
9898Then check the hashes and signatures, ensuring you get a positive message from each one:
9999
100100{% highlight bash %}
101+ GPG_COMMAND=$((which gpg >> /dev/null && echo gpg) || (which gpg2 >> /dev/null && echo gpg2))
102+
103+ if [ -z "${GPG_COMMAND}" ] ; then
104+ echo "gpg or gpg2 must be installed, exiting"
105+ exit
106+ fi
107+
101108for artifact in $(find * -type f ! \( -name '* .asc' -o -name '* .sha256' \) ); do
102109 shasum -a256 -c ${artifact}.sha256 && \
103- gpg2 --verify ${artifact}.asc ${artifact} \
110+ $GPG_COMMAND --verify ${artifact}.asc ${artifact} \
104111 || { echo "Invalid signature for $artifact. Aborting!"; break; }
105112done
106113{% endhighlight %}
You can’t perform that action at this time.
0 commit comments