Last active
July 1, 2021 07:16
-
-
Save spromicky/c8e117e4705c1b99dd2b to your computer and use it in GitHub Desktop.
Git hook to update pods for new version of Podfile
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/zsh | |
changed_files="$(git diff-tree -r --name-only --no-commit-id $1 $2)" | |
podfile_pattern=Podfile | |
if (($changed_files[(I)$podfile_pattern])) then | |
pod install | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment