Skip to content

Instantly share code, notes, and snippets.

@brennanMKE
Created March 14, 2014 21:17
Show Gist options
  • Save brennanMKE/9557154 to your computer and use it in GitHub Desktop.
Save brennanMKE/9557154 to your computer and use it in GitHub Desktop.
Run `pod install` and check if Ruby will require sudo
#!/bin/sh
RUBY=`which ruby`
if [[ $RUBY = '/usr/bin/ruby' ]] ; then
echo "error: You must run the following command from the command-line."
echo "sudu gem pod install"
else
if [[ -e 'Podfile' ]]; then
gem pod install
else
echo "There is not Podfile in the current folder"
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment