cog/.githooks/pre-commit

12 lines
312 B
Bash
Executable File

#!/bin/sh
ERRORS=$(grep -nR --include project.pbxproj -E "(DevelopmentTeam|DEVELOPMENT_TEAM) =" . | grep -v -E '= ""')
COUNT=$(echo -n "$ERRORS\c" | wc -l | awk '{print $1}')
if [ $COUNT -ne 0 ]; then
echo $COUNT
echo "Remove Development Team specifications from project files:"
echo "$ERRORS";
exit 1;
fi