Skip to content

Commit

Permalink
change malware check
Browse files Browse the repository at this point in the history
  • Loading branch information
0x7d8 committed Nov 28, 2024
1 parent 742493a commit 6c27aa9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions java/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ java -version
JAVA_MAJOR_VERSION=$(java -version 2>&1 | awk -F '"' '/version/ {print $2}' | awk -F '.' '{print $1}')

if [[ "$MALWARE_SCAN" == "1" ]]; then
# check if java version is lower than 17
if [[ "$JAVA_MAJOR_VERSION" -lt 17 ]]; then
if [[ ! -f "/MCAntiMalware.jar" ]]; then
echo -e "${LOG_PREFIX} Malware scanning is only available for Java 17 and above, skipping..."
MALWARE_SCAN=0
fi
Expand Down

0 comments on commit 6c27aa9

Please sign in to comment.