Allow spaces in java home. (#11407)

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.
This commit is contained in:
Daniel Koepke 2021-07-05 06:20:36 -07:00 committed by GitHub
parent d3220693f3
commit 497f2a1051
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}