mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-07-17 09:49:13 +00:00
Add helpful error message to license check
This commit is contained in:
@@ -36,4 +36,9 @@ if [[ $mode == "check" ]]; then
|
|||||||
args+=(-check)
|
args+=(-check)
|
||||||
fi
|
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