You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by jr...@apache.org on 2010/11/28 04:32:50 UTC

svn commit: r1039827 - /wicket/trunk/release.sh

Author: jrthomerson
Date: Sun Nov 28 03:32:49 2010
New Revision: 1039827

URL: http://svn.apache.org/viewvc?rev=1039827&view=rev
Log:
add gpg passphrase verification so that we fail-fast if i fat-finger my extremely long and complex gpg passphrase

Modified:
    wicket/trunk/release.sh

Modified: wicket/trunk/release.sh
URL: http://svn.apache.org/viewvc/wicket/trunk/release.sh?rev=1039827&r1=1039826&r2=1039827&view=diff
==============================================================================
--- wicket/trunk/release.sh (original)
+++ wicket/trunk/release.sh Sun Nov 28 03:32:49 2010
@@ -27,6 +27,15 @@ stty -echo 
 read passphrase
 stty $stty_orig
 
+# test the GPGP passphrase to fail-fast:
+echo "$passphrase" | gpg --passphrase-fd 0 --armor --output pom.xml.asc --detach-sig pom.xml
+gpg --verify pom.xml.asc
+if [ $? -ne 0 ]; then
+	echo "It appears that you fat-fingered your GPG passphrase"
+	exit $?
+fi
+rm pom.xml.asc
+
 # Clear the current NOTICE.txt file
 echo "Creating notice file."