Created
March 14, 2014 21:17
-
-
Save brennanMKE/9557154 to your computer and use it in GitHub Desktop.
Run `pod install` and check if Ruby will require sudo
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/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