flux2-kustomize-helm-example icon indicating copy to clipboard operation
flux2-kustomize-helm-example copied to clipboard

Ensure that validate.sh fails when `find` fails

Open toelke opened this issue 3 years ago • 0 comments

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]

toelke avatar Jul 11 '22 11:07 toelke