XcodeGen/diff-fixtures.sh
2018-09-29 21:39:35 +10:00

14 lines
393 B
Bash
Executable File

#!/bin/bash
set -e
if [[ `git status --porcelain Tests/Fixtures/TestProject` ]]; then
echo ""
echo "⚠️ Generated TestProject has changed."
echo "⚠️ If this is a valid change please run the tests and commit the updated TestProject."
echo ""
git --no-pager diff --color=always Tests/Fixtures/TestProject
exit 1
else
echo "✅ Generated TestProject has not changed."
fi