Split without keeping spaces in sh command

Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
Ari Archer 2022-08-15 03:28:59 +03:00
parent 019426bc9b
commit 3a449a2e61
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_command.split()]
).decode()
except FileNotFoundError:
output = "Command not found"