Created
December 13, 2019 18:36
-
-
Save AndrewWCarson/3d8e1765b480c7614d06d54408605a5a to your computer and use it in GitHub Desktop.
Homebrew Self Service Install
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/bash | |
osascript << EOF | |
tell application "Terminal" | |
activate | |
set user to do shell script "stat -f%Su /dev/console" | |
do script "sudo -u " & user & ' /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"' in window 2 | |
tell application "System Events" to key code 36 | |
end tell | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment