More makefile cleanup

This commit is contained in:
Katrina Verey
2022-04-04 16:43:43 -04:00
parent 0fa010c7e7
commit 46875b6ac4
12 changed files with 74 additions and 103 deletions

View File

@@ -34,11 +34,13 @@ args=(
)
if [[ $mode == "check" ]]; then
args+=(-check)
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
exit 0
fi
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
addlicense "${args[@]}" .