Skip to content

Instantly share code, notes, and snippets.

@spromicky
Last active July 1, 2021 07:16
Show Gist options
  • Save spromicky/c8e117e4705c1b99dd2b to your computer and use it in GitHub Desktop.
Save spromicky/c8e117e4705c1b99dd2b to your computer and use it in GitHub Desktop.
Git hook to update pods for new version of Podfile
#!/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