diff --git a/Makefile b/Makefile index 3154eeacd1ae911e3db797f9f1226c6ce5437cd9..04568cd9a40b7b8287d740e7f5939325285b0522 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,9 @@ $(LOCAL_DIR)/%/: .PHONY: clean clean: - rm -rf \ + echo "DELETING: $(APP_NODE_MODULE_DIRS) $(TEMP_DIR) $(LOCAL_DIR)/dist" | tr ' ' '\n' + read -p "OK? [N,y] " input; [[ "$${input}" == "y" ]] \ + && rm -rf \ $(APP_NODE_MODULE_DIRS) \ $(TEMP_DIR) \ $(LOCAL_DIR)/dist @@ -43,7 +45,9 @@ clean: build: SERVER_PUBLIC_URL ?= http://127.0.0.1:3001 build: APP_BUILD_PATH ?= $(TEMP_DIR) build: - rm -rf $(APP_BUILD_PATH) + echo "DELETING: $(APP_BUILD_PATH)" | tr ' ' '\n' + read -p "OK? [N,y] " input; [[ "$${input}" == "y" ]] \ + && rm -rf $(APP_BUILD_PATH) cp -r $(MKFILE_DIR)/app/server/src $(APP_BUILD_PATH) cp $(MKFILE_DIR)/app/server/package* $(APP_BUILD_PATH)/ diff --git a/README.md b/README.md index d94d924feef2e5ad48fd2ec91e536322c5058472..ea65e7dd8380b8401228b55f7975cb4f6266e1c9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ Lecture: DevOps - Application ============================= +> :warning: __Invoking `make` in a path containing white spaces may lead to unforeseen side effects like DATA LOSS !__ + This repository contains the [application](./app/README.md) that is supposed be used as *deployable workload* in the [project assignment](https://github.com/lucendio/lecture-devops-material/blob/master/assignments/project-work.md)