Created
October 21, 2018 12:32
-
-
Save finestructure/239c5352050fe7d000f6dc51a93b5a18 to your computer and use it in GitHub Desktop.
pre-commit hook to generate LinuxMain.swift via Sourcery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
./update_linux_tests.sh &>/dev/null | |
if [[ -n $(git diff) ]]; then | |
echo "Linux tests were out of date." | |
echo "Files have been updated, please review add them to the commit." | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment