XcodeGen/scripts/diff-fixtures.sh
2023-01-22 01:32:22 +11:00

14 lines
353 B
Bash
Executable File

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