You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by Sebastian Bazley <se...@apache.org> on 2016/03/23 02:33:20 UTC

[whimsy.git] [1/1] Commit a6ed5a2: Add more info

Commit a6ed5a2d29a4e1552f4b8da572be8e35a9ff35e0:
    Add more info


Branch: refs/heads/master
Author: Sebb <se...@apache.org>
Committer: Sebb <se...@apache.org>
Pusher: sebb <se...@apache.org>

------------------------------------------------------------
www/test.cgi                                                 | +++ -
------------------------------------------------------------
4 changes: 3 additions, 1 deletions.
------------------------------------------------------------


diff --git a/www/test.cgi b/www/test.cgi
index 4c36019..3797ab9 100755
--- a/www/test.cgi
+++ b/www/test.cgi
@@ -16,11 +16,13 @@ ENV.sort.each do |k,v|
 end
 
 # Optional extra info (from the main script only)
-query = ENV['QUERY_STRING']
+query = ENV['QUERY_STRING'] || ARGV[0]
 if query and not query.empty? and ENV['SCRIPT_URL'] == '/test.cgi'
     print "\n"
     system('which','-a','ruby')
+    system('which','-a','ruby2.3.0')
     system('ruby','-v')
+    system('gem','env')
     wait=query.match(/^sleep=(\d+)$/)[1].to_i rescue 0
     if wait > 0
       print "\nWaiting #{wait} seconds ..."