aboutsummaryrefslogtreecommitdiffstats
path: root/deploy.py
diff options
context:
space:
mode:
Diffstat (limited to 'deploy.py')
-rwxr-xr-xdeploy.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/deploy.py b/deploy.py
index 75bbabf..4f373ee 100755
--- a/deploy.py
+++ b/deploy.py
@@ -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)