Add condition to clone, change protonvpn installation for Arch: use AUR
This commit is contained in:
parent
07a694bbf4
commit
ba91a69205
1 changed files with 7 additions and 1 deletions
|
@ -70,9 +70,15 @@ class Installer:
|
|||
relpath: str = path.relpath(self.home)
|
||||
return "~/" + relpath
|
||||
|
||||
def do_clone(self, url: str, dest: str, branch: str = "master") -> None:
|
||||
def do_clone(
|
||||
self, url: str, dest: str, branch: str = "master", condition: str = "true"
|
||||
) -> None:
|
||||
"""Do the git clone."""
|
||||
|
||||
if not self.evaluate_condition(condition):
|
||||
ui.info_2("Skipping", url)
|
||||
return
|
||||
|
||||
p_dest = Path(dest).expanduser()
|
||||
pretty_dest = self.pretty_path(p_dest)
|
||||
p_dest.parent.makedirs_p()
|
||||
|
|
Loading…
Add table
Reference in a new issue