From 90870ead8d92bd579619da301d0581059f7c4520 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferit=20Yi=C4=9Fit=20BALABAN?= Date: Thu, 9 Feb 2023 16:30:15 +0300 Subject: [PATCH] Add logic if local repository dir is not present --- dotman.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/dotman.py b/dotman.py index 61ac593..4f13a9f 100755 --- a/dotman.py +++ b/dotman.py @@ -231,9 +231,17 @@ def main(): # deploy else: # either both flags are set OR both are unset - # quit script + exit(0) else: # local repository directory does not exist. Only deploy is possible. + # if interactive, ask for deploy, else if deploy flag is set, deploy, otherwise quit. + if flag_interactive: + # ask for deploy + return + elif flag_deploy: + # deploy + return + quit(0) # ^^^ new logic ^^^