Skip to content

Commit

Permalink
Allow spaces in java home. (apache#11407)
Browse files Browse the repository at this point in the history
Quote the $java_exec var in examples/bin/verify-java to support spaces in DRUID_JAVA_HOME/JAVA_HOME. At present, the steps before and after the version check properly quote the path, but the version check spuriously fails when pointing to a Java 8 install that has a space in its path.
  • Loading branch information
dkoepke authored Jul 5, 2021
1 parent d322069 commit 497f2a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/bin/verify-java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ if ($java_bin_dir eq "") {
fail_check()
}
my $java_exec = "${java_bin_dir}/java";
my $java_version = qx[$java_exec -version 2>&1];
my $java_version = qx["$java_exec" -version 2>&1];
if ($?) {
fail_check();
}
Expand Down

0 comments on commit 497f2a1

Please sign in to comment.