diff --git a/java/entrypoint.sh b/java/entrypoint.sh index 260ccbf..737bf2e 100644 --- a/java/entrypoint.sh +++ b/java/entrypoint.sh @@ -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