_default 533 B

1234567891011121314
  1. #!/bin/bash
  2. has curl || gimme_pkg curl
  3. if [[ "$OS" = "Darwin" ]]; then
  4. [[ -d "$HOME/homebrew" ]] || (mkdir "$HOME/homebrew" 2>/dev/null && curl -L "https://github.com/Homebrew/homebrew/tarball/master" | tar xz --strip 1 -C "$HOME/homebrew" && brew update)
  5. has brew-cask || brew install caskroom/cask/brew-cask
  6. else
  7. if ! has apt-get; then
  8. echo "ERROR: Your OS does not have 'apt-get' and is not currently supported."
  9. echo "For support please see the website: $GIMME_URL"
  10. fi
  11. fi
  12. has "$GIMME" || gimme_pkg "$GIMME"