From 72ee899ba2cf337266d076b6f80d3cf5c862cc60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferit=20Yi=C4=9Fit=20BALABAN?= Date: Sat, 11 Feb 2023 00:46:12 +0300 Subject: [PATCH] + implement method deploy() --- dotman.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dotman.py b/dotman.py index c3163fb..d0bab8c 100755 --- a/dotman.py +++ b/dotman.py @@ -201,8 +201,11 @@ def deploy(): r = SETTINGS.DIR_REPO r.removesuffix("/")[:r.removesuffix("/").rindex("/")] run(shlex.split(f"/usr/bin/git clone {SETTINGS[URL_REPO]}"), text=True, cwd=r) - run(shlex.split("/usr/bin/git pull")) - # copy files & directories + run(shlex.split("/usr/bin/git pull"), text=True, cwd=r) + for files in DL_FILES: + copy(files) + for dirs in DL_DIRS: + copy(dirs) def expand_settings():