Add logic if local repository dir is not present
This commit is contained in:
parent
836d79a731
commit
90870ead8d
10
dotman.py
10
dotman.py
@ -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 ^^^
|
||||||
|
Loading…
x
Reference in New Issue
Block a user