Commits

Ville Suoranta authored ced8906dadd
Use type instead of which in mod-closure
No tags

casatools/scripts/mod-closure

Modified
15 15 ### avoid: "Fetch failed! HTTP response: 500 Internal Server Error [500 Can’t verify SSL peers without knowing which Certificate Authorities to trust]"
16 16 ###
17 17 $ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0;
18 18 ###
19 19 ### avoid: TLSv1.0 backends...
20 20 ###
21 21 $File::Fetch::BLACKLIST = [qw|lwp httptiny httplite|];
22 22
23 23 $exe = abs_path($0);
24 24 $path = abs_path(dirname($exe));
25 -chop($java=`which java`);
25 +chop($java=`type -p java`);
26 26 $jarfile_name = "mod-closure-assembly-1.7.jar";
27 27 @java_version = ( );
28 28 open(JAVAVER, "$java -version 2>&1 |");
29 29 foreach ( <JAVAVER> ) {
30 30 if ( m|version "?(\d+)\.(\d+)|i ) {
31 31 @java_version = ($1,$2);
32 32 #print "found java version ", join('.',@java_version), "\n";
33 33 }
34 34 }
35 35 close(JAVAVER);

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut