Skip to content

Commit

Permalink
Merge pull request #881 from schloegl/master
Browse files Browse the repository at this point in the history
fix for using other openjdk java (e.g. Zulu from Azul)
  • Loading branch information
KatharinaHoff authored Nov 5, 2024
2 parents 35280d0 + 481481f commit e2cb97a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/braker.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2341,7 +2341,7 @@ sub set_JAVA_PATH {
$JAVA_PATH = set_software_PATH($java_path, "JAVA_PATH",
\@required_files, 'exit');

$cmdString = "java -version 2>&1 | grep 'version' | awk -F['\"''.'] -v OFS=. ".'\'{print $2,$3}\'';
$cmdString = "java -version 2>&1 | awk -F['\"''.'] -v OFS=. '/version/ {print $2,$3}'";
my @javav = `$cmdString` or die("Failed to execute: $cmdString");
if(not ($javav[0] =~ m/1\.8/ )){
$prtStr = "\# " . (localtime) . " ERROR: in file " . __FILE__
Expand Down

0 comments on commit e2cb97a

Please sign in to comment.