Add shell to run
This commit is contained in:
parent
ef46a43523
commit
ecf6b25b5f
1 changed files with 4 additions and 4 deletions
|
@ -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."""
|
||||
|
|
Loading…
Add table
Reference in a new issue