feat : java interpreter bash handle

This commit is contained in:
martin legrand committed 2025-04-11 12:59:14 +02:00
1 parent 9fe561085b
commit a9c1f5b790
1 file changed
+1 -1
+1 -1
View File
@@ -25,7 +25,7 @@ class BashInterpreter(Tools):
If so, return True, otherwise return False. If so, return True, otherwise return False.
Code written by the AI will be executed automatically, so it should not use bash to run it. Code written by the AI will be executed automatically, so it should not use bash to run it.
""" """
lang_interpreter = ["python3", "gcc", "g++", "go", "javac", "rustc", "clang", "clang++", "rustc", "rustc++", "rustc++"] lang_interpreter = ["python3", "gcc", "g++", "mvn", "go", "javac", "rustc", "clang", "clang++", "rustc", "rustc++", "rustc++"]
for word in command.split(): for word in command.split():
if word in lang_interpreter: if word in lang_interpreter:
return True return True