Skip to content

Instantly share code, notes, and snippets.

@garriguv
Created January 17, 2016 12:14
Show Gist options
  • Save garriguv/860ea0af0ee8ec6b8ae9 to your computer and use it in GitHub Desktop.
Save garriguv/860ea0af0ee8ec6b8ae9 to your computer and use it in GitHub Desktop.
Setup script
#!/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