subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danie...@apache.org
Subject svn commit: r1228490 - /subversion/trunk/tools/client-side/svn-ssl-fingerprints.sh
Date Fri, 06 Jan 2012 22:57:29 GMT
Author: danielsh
Date: Fri Jan  6 22:57:28 2012
New Revision: 1228490

URL: http://svn.apache.org/viewvc?rev=1228490&view=rev
Log:
* tools/client-side/svn-ssl-fingerprints.sh:
    Use a more portable syntax.  (Was broken on FreeBSD and Solaris.)

Modified:
    subversion/trunk/tools/client-side/svn-ssl-fingerprints.sh

Modified: subversion/trunk/tools/client-side/svn-ssl-fingerprints.sh
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/client-side/svn-ssl-fingerprints.sh?rev=1228490&r1=1228489&r2=1228490&view=diff
==============================================================================
--- subversion/trunk/tools/client-side/svn-ssl-fingerprints.sh (original)
+++ subversion/trunk/tools/client-side/svn-ssl-fingerprints.sh Fri Jan  6 22:57:28 2012
@@ -28,6 +28,6 @@
 CONFIG_DIR=${1-$HOME/.subversion}
 for i in $CONFIG_DIR/auth/svn.ssl.server/????????????????????????????????; do
   grep :// $i
-  grep '.\{80\}' $i | sed 's/\(.\{64\}\)/\1\n/g' | openssl base64 -d | openssl x509 -inform
der -noout -fingerprint | sed 's/=/\n/'
+  grep '.\{80\}' $i | sed 's/\(.\{64\}\)/\1 /g' | xargs -n1 | openssl base64 -d | openssl
x509 -inform der -noout -fingerprint | sed 's/=/\n/'
   echo
 done



Mime
View raw message