diff --git a/main.py b/main.py index 7025022..c0ea37d 100644 --- a/main.py +++ b/main.py @@ -1,5 +1,6 @@ import json import os +import shlex from pathlib import Path from subprocess import PIPE, STDOUT, Popen @@ -37,8 +38,10 @@ class Api: config["page"] = page def run(self, command, cwd=None): + command = shlex.split(command) + command[0] = os.path.normpath(command) with Popen( - os.path.normpath(command), + command, stdout=PIPE, stderr=STDOUT, shell=True, diff --git a/ui/src/pages/Init.vue b/ui/src/pages/Init.vue index 1850d3d..20fed4b 100644 --- a/ui/src/pages/Init.vue +++ b/ui/src/pages/Init.vue @@ -1,7 +1,7 @@