Skip to content

Instantly share code, notes, and snippets.

@finestructure
Created October 21, 2018 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save finestructure/239c5352050fe7d000f6dc51a93b5a18 to your computer and use it in GitHub Desktop.
Save finestructure/239c5352050fe7d000f6dc51a93b5a18 to your computer and use it in GitHub Desktop.
pre-commit hook to generate LinuxMain.swift via Sourcery
#!/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