flux2-kustomize-helm-example
flux2-kustomize-helm-example copied to clipboard
Ensure that validate.sh fails when `find` fails
When the producing command in a pipe fails, a script does not fail, even with errexit:
[...]
INFO - Validating clusters
find: './clusters': No such file or directory
INFO - Validating kustomize overlays
[...]
$ echo $?
0
With this change:
INFO - Validating clusters
find: './clusters': No such file or directory
$ echo $?
1
Signed-off-by: Philipp Riederer [email protected]