@@ -29,6 +29,7 @@ ifneq ("$(wildcard scripts/git_hooks/sniffers.sh)","")
2929 $(shell ln -sf ../../scripts/git_hooks/sniffers.sh .git/hooks/pre-push)
3030else
3131 @echo "scripts/git_hooks/sniffers.sh file does not exist"
32+ @exit 1
3233endif
3334else
3435 @echo "No git directory found, git hooks won't be installed"
@@ -41,6 +42,7 @@ ifneq ("$(wildcard scripts/makefile/baseconfig-langcode.sh)","")
4142 @/bin/sh ./scripts/makefile/baseconfig-langcode.sh
4243else
4344 @echo "scripts/makefile/baseconfig-langcode.sh file does not exist"
45+ @exit 1
4446endif
4547
4648# # Validate configuration schema
@@ -51,6 +53,7 @@ ifneq ("$(wildcard scripts/makefile/config-inspector-validation.sh)","")
5153 @$(call php, /bin/sh ./scripts/makefile/config-inspector-validation.sh)
5254else
5355 @echo "scripts/makefile/config-inspector-validation.sh file does not exist"
56+ @exit 1
5457endif
5558
5659# # Validate composer.json file
@@ -66,6 +69,7 @@ ifneq ("$(wildcard scripts/makefile/hookupdateval.sh)","")
6669 @/bin/sh ./scripts/makefile/hookupdateval.sh
6770else
6871 @echo "scripts/makefile/hookupdateval.sh.sh file does not exist"
72+ @exit 1
6973endif
7074
7175# # Validate watchdog logs
@@ -75,6 +79,7 @@ ifneq ("$(wildcard scripts/makefile/watchdog-validation.sh)","")
7579 @$(call php, /bin/sh ./scripts/makefile/watchdog-validation.sh)
7680else
7781 @echo "scripts/makefile/watchdog-validation.sh file does not exist"
82+ @exit 1
7883endif
7984
8085# # Validate status report
@@ -84,6 +89,7 @@ ifneq ("$(wildcard scripts/makefile/status-report-validation.sh)","")
8489 @$(call php, /bin/sh ./scripts/makefile/status-report-validation.sh)
8590else
8691 @echo "scripts/makefile/status-report-validation.sh file does not exist"
92+ @exit 1
8793endif
8894
8995# # Validate drupal-rector
@@ -95,6 +101,7 @@ ifneq ("$(wildcard rector.yml)","")
95101 $(call php, vendor/bin/rector process --dry-run --no-progress-bar web/modules/custom web/themes/custom)
96102else
97103 @echo "rector.yml file does not exist"
104+ @exit 1
98105endif
99106
100107# # Validate upgrade-status
@@ -105,6 +112,7 @@ ifneq ("$(wildcard scripts/makefile/upgrade-status-validation.sh)","")
105112 @$(call php, /bin/sh ./scripts/makefile/upgrade-status-validation.sh)
106113else
107114 @echo "scripts/makefile/upgrade-status-validation.sh file does not exist"
115+ @exit 1
108116endif
109117
110118# # Validate newline at the end of files
@@ -113,6 +121,7 @@ ifneq ("$(wildcard scripts/makefile/newlineeof.sh)","")
113121 @/bin/sh ./scripts/makefile/newlineeof.sh
114122else
115123 @echo "scripts/makefile/newlineeof.sh file does not exist"
124+ @exit 1
116125endif
117126
118127# # Validate Behat scenarios
@@ -166,6 +175,7 @@ ifneq ("$(wildcard scripts/makefile/contentgen.sh)","")
166175 @$(call php, /bin/sh ./scripts/makefile/contentgen.sh)
167176else
168177 @echo "scripts/makefile/watchdog-validation.sh file does not exist"
178+ @exit 1
169179endif
170180
171181# # Run sniffer validations (executed as git hook, by scripts/git_hooks/sniffers.sh)
0 commit comments