You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2015/11/18 20:13:20 UTC

svn commit: r1715040 - /flex/site/trunk/content/single-mirror-url2.cgi

Author: aharui
Date: Wed Nov 18 19:13:20 2015
New Revision: 1715040

URL: http://svn.apache.org/viewvc?rev=1715040&view=rev
Log:
try this cgi

Modified:
    flex/site/trunk/content/single-mirror-url2.cgi

Modified: flex/site/trunk/content/single-mirror-url2.cgi
URL: http://svn.apache.org/viewvc/flex/site/trunk/content/single-mirror-url2.cgi?rev=1715040&r1=1715039&r2=1715040&view=diff
==============================================================================
--- flex/site/trunk/content/single-mirror-url2.cgi (original)
+++ flex/site/trunk/content/single-mirror-url2.cgi Wed Nov 18 19:13:20 2015
@@ -1,5 +1,4 @@
 #!/bin/sh
 # Alex’s wrapper around the standard mirrors.cgi script to try to fix formatting
 Content-Type: text/plain
-exec /www/www.apache.org/dyn/mirrors/mirrors.cgi >/dev/null
-print preferred
+exec /www/www.apache.org/dyn/mirrors/mirrors.cgi asjson=true | grep 'preferred' | sed 's/^.*: \"/<p>/' | sed 's/\"$/<\/p>/'
\ No newline at end of file