Make the command sh run in sh

Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
Ari Archer 2022-08-15 04:24:28 +03:00
parent 3a449a2e61
commit 8273077c67
Signed by untrusted user who does not match committer: ari
GPG key ID: A50D5B4B599AF8A2

View file

@ -328,7 +328,7 @@ Executed query `{uncode(sql_query)}`
output: str
try:
output = check_command_output(
["timeout", str(CONFIG["sh-timeout"]), *sh_command.split()]
["timeout", str(CONFIG["sh-timeout"]), "sh", "-c", sh_command]
).decode()
except FileNotFoundError:
output = "Command not found"