Skip to content

Commit

Permalink
update java check for openjdk-11 in okapi startup script (#969)
Browse files Browse the repository at this point in the history
Remove the check because java check compatibility and we don't have to interpret message output anymore.
  • Loading branch information
funkymalc authored and adamdickmeiss committed Sep 17, 2020
1 parent da9ee38 commit 2f5cf56
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions dist/okapi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,6 @@ java_check() {
echo "Could not find any executable java binary."
echo "Install java in your PATH or set JAVA_HOME"
exit 1
else
VERSION=$("$JAVA" -version 2>&1 | awk -F '"' '/version/ { print $2 }' \
| awk -F '.' '{ print $2 }')
if [ "$VERSION" -lt "8" ]; then
echo "Java version 8 or higher is required."
exit 0
fi
fi
} # end java_check

Expand Down

0 comments on commit 2f5cf56

Please sign in to comment.