Skip to content

Commit

Permalink
Merge branch '1.4.1-develop' into rel/1.4.1_arenadata1
Browse files Browse the repository at this point in the history
  • Loading branch information
Asmoday committed Oct 17, 2024
2 parents b73151c + dd9fe84 commit ae96397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hadoop-ozone/dist/src/shell/ozone/ozone
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function ozonecmd_case
OZONE_MODULE_ACCESS_ARGS=""

# Get the version string
JAVA_VERSION_STRING=$(java -version 2>&1 | head -n 1)
JAVA_VERSION_STRING=$(${JAVA_HOME}/bin/java -version 2>&1 | head -n 1)

# Extract the major version number
JAVA_MAJOR_VERSION=$(echo "$JAVA_VERSION_STRING" | sed -E -n 's/.* version "([^.-]*).*"/\1/p' | cut -d' ' -f1)
Expand Down

0 comments on commit ae96397

Please sign in to comment.