Commit 21d8d653 authored by Peter NORTHUP's avatar Peter NORTHUP

Homebrew should install correctly (as user)

parent 69c199cf
: ${username=$SUDO_USER}
function enter_yesno {
while true ; do
......@@ -16,10 +17,10 @@ function enter_yesno {
# if they want LaTeX, install it
if enter_yesno "Install MacTex?"
/usr/bin/ruby -e "$(curl -fsSL"
brew tap caskroom/cask
brew cask install mactex
brew cask install texmaker
sudo -u $username /usr/bin/ruby -e "$(curl -fsSL"
sudo -u $username brew tap caskroom/cask
sudo -u $username brew cask install mactex
sudo -u $username brew cask install texmaker
# if they want Office2016, install it
......@@ -131,5 +131,5 @@ rm "/Users/$username/openvpn-$"
rm -rf "/Users/$username/openvpn"
# cleanup
history -c
sudo -u $username history -c
rm /Users/$username/.bash_history
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment