mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
✨ Included java 20 in check too
This commit is contained in:
+2
-2
@@ -76,11 +76,11 @@ class Patches(object):
|
|||||||
jd = jd[1:-1]
|
jd = jd[1:-1]
|
||||||
if "Runtime Environment" not in jd:
|
if "Runtime Environment" not in jd:
|
||||||
raise subprocess.CalledProcessError(-1, "java -version")
|
raise subprocess.CalledProcessError(-1, "java -version")
|
||||||
if "17" not in jd:
|
if "17" not in jd and "20" not in jd:
|
||||||
raise subprocess.CalledProcessError(-1, "java -version")
|
raise subprocess.CalledProcessError(-1, "java -version")
|
||||||
logger.debug("Cool!! Java is available")
|
logger.debug("Cool!! Java is available")
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
logger.debug("Java 17 Must be installed")
|
logger.debug("Java>= 17 Must be installed")
|
||||||
exit(-1)
|
exit(-1)
|
||||||
|
|
||||||
# noinspection DuplicatedCode
|
# noinspection DuplicatedCode
|
||||||
|
|||||||
Reference in New Issue
Block a user