Created
January 17, 2016 12:14
-
-
Save garriguv/860ea0af0ee8ec6b8ae9 to your computer and use it in GitHub Desktop.
Setup script
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/sh | |
carthage_installed() { | |
command -v carthage >/dev/null | |
} | |
install_dependencies() { | |
carthage update --platform iOS --use-submodules --no-use-binaries | |
} | |
main() { | |
if ! carthage_installed; then | |
echo "carthage is not installed." | |
echo "See https://github.com/carthage/carthage for install instructions." | |
exit 1 | |
fi | |
install_dependencies | |
} | |
main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment