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."""