Skip to content

Instantly share code, notes, and snippets.

@mingalevme
mingalevme / podinstall-summary.sh
Last active May 26, 2021 14:27
Installing pods inside Bundler if Podfile changed after git pull, merge or checkout (git hooks)
#!/usr/bin/env bash
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew install ruby
echo "export PATH=/usr/local/opt/ruby/bin:\$PATH" >> ~/.bash_profile
source ~/.bash_profile
/usr/local/opt/ruby/bin/gem install bundler
/usr/local/opt/ruby/bin/bundle install
/usr/local/opt/ruby/bin/bundle exec pod install --repo-update