Merge pull request #145 from NoCLin/fix-execute

SECURITY: change execute_entrypoint conditions
This commit is contained in:
Emil Ahlbäck
2023-06-18 13:57:33 +02:00
committed by GitHub

View File

@@ -143,10 +143,11 @@ def execute_entrypoint(ai, dbs):
print()
print(command)
print()
print('If yes, press enter. If no, type "no"')
print('If yes, type "yes". If no, press enter.')
print()
if input() == "no":
if input().lower() != "yes":
print("Ok, not executing the code.")
return []
print("Executing the code...")
print()
subprocess.run("bash run.sh", shell=True, cwd=dbs.workspace.path)