Add logic if local repository dir is not present

This commit is contained in:
Ferit Yiğit BALABAN 2023-02-09 16:30:15 +03:00
parent 836d79a731
commit 90870ead8d

View File

@ -231,9 +231,17 @@ def main():
# deploy # deploy
else: else:
# either both flags are set OR both are unset # either both flags are set OR both are unset
# quit script exit(0)
else: else:
# local repository directory does not exist. Only deploy is possible. # 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 ^^^ # ^^^ new logic ^^^