File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ setup: # Setup local dev environment
19
19
@sleep 1
20
20
@echo " Done."
21
21
22
- purge : confirm # Clean up all local dev artifacts (node_modules, etc.)
22
+ purge : check- confirm # Clean up all local dev artifacts (node_modules, etc.)
23
23
@echo " Purging.."
24
24
@sleep 1
25
25
@echo " Done."
@@ -51,15 +51,15 @@ logs:
51
51
52
52
# ----------------- COMMON CHECKS --------------------------
53
53
54
- confirm : # Simple y/N confirmation
55
- @echo -n " Are you sure? [y/N] " && read ans && [ $$ {ans:-N} = y ] || (echo " Aborted!" && exit 1)
56
-
57
54
env-MYSQL_HOST : # [CHECK] Checks for env variable
58
55
@if test -z ${MYSQL_HOST} ; then echo -e " ${ERR} Missing ENV VAR: MYSQL_HOST. Use 'ENV_VAR=value make <cmd>'${NC} " ; exit 1; fi
59
56
60
57
arg-target : # [CHECK] Checks if param is present: make key=value
61
58
@if [ " $( target) " = " " ]; then echo -e " ${ERR} Missing param: target. Use 'make <cmd> arg=value'${NC} " ; exit 1; fi
62
59
60
+ check-confirm : # Simple y/N confirmation
61
+ @echo -n " Are you sure? [y/N] " && read ans && [ $$ {ans:-N} = y ] || (echo " Aborted!" && exit 1)
62
+
63
63
check-dotenv : # [CHECK] Checks if .env file is present
64
64
@if [ ! -f " .env" ]; then echo -e " ${ERR} Missing .env file. Run 'cp .env.example .env'${NC} " ; exit 1; fi
65
65
You can’t perform that action at this time.
0 commit comments