Start rewriting main logic
This commit is contained in:
parent
d29ac46168
commit
d01aeee139
13
dotman.py
13
dotman.py
@ -187,7 +187,7 @@ def main():
|
|||||||
WHEREAMI = rrem(sys.argv[0], '/')
|
WHEREAMI = rrem(sys.argv[0], '/')
|
||||||
expand_settings()
|
expand_settings()
|
||||||
|
|
||||||
local_repo_exists = os.path.exists(SETTINGS['DIR_REPO'])
|
exists_dir_repo = os.path.exists(SETTINGS['DIR_REPO'])
|
||||||
|
|
||||||
flag_interactive = False
|
flag_interactive = False
|
||||||
flag_backup = False
|
flag_backup = False
|
||||||
@ -209,6 +209,17 @@ def main():
|
|||||||
else:
|
else:
|
||||||
flag_interactive = True
|
flag_interactive = True
|
||||||
|
|
||||||
|
if exists_dir_repo:
|
||||||
|
# local repository directory exists. Backup or deploy is possible.
|
||||||
|
else:
|
||||||
|
# local repository directory does not exist. Only deploy is possible.
|
||||||
|
|
||||||
|
|
||||||
|
# ^^^ new logic ^^^
|
||||||
|
#
|
||||||
|
# vvv old logic vvv
|
||||||
|
return
|
||||||
|
|
||||||
if flag_interactive:
|
if flag_interactive:
|
||||||
print(f"dotman {VER} by ferityigitbalaban")
|
print(f"dotman {VER} by ferityigitbalaban")
|
||||||
if not local_repo_exists:
|
if not local_repo_exists:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user