diff options
| author | LMBishop <13875753+LMBishop@users.noreply.github.com> | 2022-11-20 22:59:20 +0000 |
|---|---|---|
| committer | LMBishop <13875753+LMBishop@users.noreply.github.com> | 2022-11-20 22:59:20 +0000 |
| commit | f80bd6727a727414d6736157bbac63705b92674c (patch) | |
| tree | 25a1d2e5c3ba9053535d311d07d4edece8d5f596 /deploy.py | |
| parent | e4367180c67085611b995e1539f0995be05d0308 (diff) | |
Add overwrite files mode
Diffstat (limited to 'deploy.py')
| -rwxr-xr-x | deploy.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -10,6 +10,7 @@ import yaml from termcolor import colored CWD = os.getcwd() +OVERWRITE_FILES = os.getenv("OVERWRITE_FILES") def get_sections_meeting_preconditions(yaml): @@ -47,6 +48,10 @@ print("Sections to run: " + ", ".join( )) print() +if OVERWRITE_FILES == "1": + print(colored("Warning: ", "red") + "you have requested overwrite mode!") + print() + if not query_yes_no("Proceed with install?", False): exit(1) |
