Files
XcodeGen/scripts/diff-fixtures.sh
T
2019-02-02 13:21:19 +11: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