Skip to content

Instantly share code, notes, and snippets.

View aubguillemette's full-sized avatar

Aub Guillemette aubguillemette

View GitHub Profile
@aubguillemette
aubguillemette / install.rb
Last active September 28, 2020 02:36 — forked from skyl/install.rb
Homebrew without sudo
#Forked this script to fix issues with the original (like commenting the parts where it chgrp to 'admin')
#Not my fault if this script does unexpected stuff.
#---------------------------------------------------
#INSTALL_PATH must be an absolute path
INSTALL_PATH = ''
HOMEBREW_PREFIX = "#{INSTALL_PATH}/usr/local"
system "mkdir -p #{HOMEBREW_PREFIX}"
HOMEBREW_CACHE = '/Library/Caches/Homebrew'
HOMEBREW_REPO = 'https://github.com/Homebrew/homebrew'