From ecf6b25b5fade2d3ae5963556ba695293debaa5d Mon Sep 17 00:00:00 2001 From: "flyingscorpio@pinebook-pro" Date: Sun, 19 Apr 2020 11:03:04 +0200 Subject: [PATCH] Add shell to run --- install.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install.py b/install.py index d9dc57b..8fe3787 100755 --- a/install.py +++ b/install.py @@ -84,12 +84,12 @@ class Installer: if executable: p_dest.chmod(0o755) - def do_run(self, args: List[str]) -> None: + def do_run(self, command: str) -> None: """Run a command.""" - command = [x.format(home=self.home) for x in args] - ui.info_2("Running", "`{}`".format(" ".join(command))) - subprocess.check_call(command) + ui.info_2("Running", "`{}`".format(command)) + subprocess.run(command, check=True, shell=True) + self.base_dir.chdir() def do_symlink(self, src: str, dest: str) -> None: """Make a symlink to a file."""