blob: 401b383d0fcd42e2e667ab9be3357e80355a5b7c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/usr/bin/env bash
xml_db_file="${1}"
duplicated=$(
grep '<mime-type' ${xml_db_file} | tr -d '[:blank:]' | sort | uniq -d
)
if [[ -n "${duplicated}" ]]; then
echo "*************************************************************"
echo "** Some mime-types are duplicated, fix before committing: **"
echo "${duplicated}"
echo "*************************************************************"
exit 1
fi
|