Created
February 27, 2015 22:27
-
-
Save jherran/f72b12001d3517092379 to your computer and use it in GitHub Desktop.
Git Hook post-checkout for running pod install after git checkout
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/bash | |
| if [ -f Podfile ] && command -v pod install >/dev/null | |
| then | |
| OUT=$(unset GIT_DIR; exec pod install) | |
| if echo "$OUT" | grep -q "Integrating client project" | |
| then | |
| echo "$OUT" | |
| true | |
| else | |
| echo "$OUT" >&2 | |
| fi | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment