Skip to content

Commit

Permalink
Merge pull request fluxcd#9 from raphapr/fix-validate-script
Browse files Browse the repository at this point in the history
Fix validate script to capture pipestatus
  • Loading branch information
stefanprodan authored Jan 8, 2021
2 parents af015e9 + 1811708 commit a7745fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,7 @@ find . -type f -name $k -print0 | while IFS= read -r -d $'\0' file;
do
echo "INFO - Validating kustomization ${file/%$k}"
kustomize build "${file/%$k}" | kubeval --ignore-missing-schemas
if [[ ${PIPESTATUS[0]} != 0 ]]; then
exit 1
fi
done

0 comments on commit a7745fd

Please sign in to comment.