Install homebrew via Jamf without giving users admin rights
This script installs homebrew for the logged in user without requiring them to be an Administrator.
It is designed to be used in an MDM such as Jamf Pro.
Thanks to Richard Purves for the first version.
Thanks to all my users for feedback and improvements.
This EA compliments the script to produce a Jamf extension attribute to record brew version. It uses the same method to detect device type and looks where the script installs. If brew is installed in different locations this will not detect it!
This script can be used to install any brew program that installs using brew install
Like the brew-install-program script this variation is used to install casks where the brew install --cask