Add helpful error message to license check

This commit is contained in:
Katrina Verey
2022-04-04 14:22:24 -04:00
parent f54014ce3b
commit 3e652d6fea

View File

@@ -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