diff options
Diffstat (limited to 'zoner.py')
-rw-r--r-- | zoner.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zoner.py b/zoner.py index 0056396..f4d4b1c 100644 --- a/zoner.py +++ b/zoner.py @@ -198,6 +198,8 @@ def git_update(domain: str): def main(): + if (cfg_dir / ".git").exists(): + subprocess.check_call(["git", "pull"], cwd=cfg_dir, stdout=subprocess.PIPE) if len(sys.argv) == 1: # selector names = map(lambda path: path.name[:-5], cfg_dir.glob("*.zone")) ret = subprocess.run( |