mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-18 02:55:22 +00:00
Add helpful error message to license check
This commit is contained in:
@@ -36,4 +36,9 @@ if [[ $mode == "check" ]]; then
|
||||
args+=(-check)
|
||||
fi
|
||||
|
||||
addlicense "${args[@]}" .
|
||||
if ! addlicense "${args[@]}" . ; then
|
||||
set +x
|
||||
echo -e "\n------------------------------------------------------------------------"
|
||||
echo "Error: license missing in one or more files. Run \`$0 run\` to update them."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user