Add license check #9

Merged
nupplaphil merged 4 commits from feat/license_check into stable 2022-07-04 01:22:53 +02:00
Showing only changes of commit 29638f2f40 - Show all commits

View file

@ -16,6 +16,9 @@ exitVal=0
printf "\n"
for file in "${files[@]}"; do
if [ ! -f "$file" ]; then
continue
fi
php_license_md5=$(head -n "$php_template_rows" "$file" | md5sum)
[[ "$php_template_md5" != "$php_license_md5" ]] && printf " - %s\n" "$file" && exitVal=1
done