@@ -6,7 +6,6 @@ ARGS = $(filter-out $@,$(MAKECMDGOALS))
66	@:
77
88SHELL  := /bin/bash
9- .SHELLFLAGS  = -x +u
109
1110#  Define the base path to your Helm charts directory
1211HELM_CHARTS_DIR  = ./charts
@@ -42,8 +41,9 @@ package-and-update: add-helm-repositories
4241#  Target to add Helm repositories
4342.PHONY : add-helm-repositories
4443add-helm-repositories :
45- 	helm repo add cnpg https://cloudnative-pg.github.io/charts
46- 	helm repo add minio https://operator.min.io/
44+ 	set  -e;  \ 
45+ 	helm repo add cnpg https://cloudnative-pg.github.io/charts;  \ 
46+ 	helm repo add minio https://operator.min.io/;  \ 
4747	helm repo update
4848
4949#  Target to lint Helm charts using chart-testing
@@ -157,21 +157,23 @@ clean: clean-charts clean-templates
157157#  Debug target to print environment information
158158.PHONY : debug-env
159159debug-env :
160- 	echo  " === Debug Environment Information ===" 
161- 	echo  " Shell: $$ {SHELL}" 
162- 	echo  " PATH: $$ {PATH}" 
163- 	which helm ||  echo  " helm not found in PATH" 
164- 	echo  " Current directory: $$ (pwd)" 
165- 	echo  " Directory listing:" 
166- 	ls -la
167- 	echo  " === End Debug Info ===" 
160+ 	set  -e;  \ 
161+ 	echo  ' === Debug Environment Information ===' ;  \ 
162+ 	echo  " Shell: $$ SHELL" ;  \ 
163+ 	echo  " PATH: $$ PATH" ;  \ 
164+ 	which helm ||  echo  ' helm not found in PATH' ;  \ 
165+ 	echo  " Current directory: $$ (pwd)" ;  \ 
166+ 	echo  " Directory listing:" ;  \ 
167+ 	ls -la;  \ 
168+ 	echo  ' === End Debug Info ===' 
168169
169170#  Debug target for testing helm repo commands
170171.PHONY : debug-helm
171172debug-helm :
172- 	echo  " === Testing Helm Commands ===" 
173- 	echo  " Helm version:" 
174- 	helm version
175- 	echo  " Testing repo add command:" 
176- 	helm repo list
173+ 	set  -e;  \ 
174+ 	echo  " === Testing Helm Commands ===" ;  \ 
175+ 	echo  " Helm version:" ;  \ 
176+ 	helm version;  \ 
177+ 	echo  " Testing repo add command:" ;  \ 
178+ 	helm repo list;  \ 
177179	echo  " === End Helm Tests ===" 
0 commit comments