Last active
May 12, 2017 15:40
-
-
Save jlerner/5d58b47d0950211809c90ce88112e483 to your computer and use it in GitHub Desktop.
Prevent Xcode Archive build when git working copy is dirty
This file contains hidden or 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 | |
# Based on http://stackoverflow.com/a/7098618/106465 | |
if [ -z "$(git status --porcelain)" ]; then | |
echo "Working directory clean, proceeding" | |
else | |
echo "error: Working directory dirty, stopping build" | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment