How to Install Firefox and Chrome on macOS using JumpCloud Commands

As you have probably seen I have written a fair few commands to make my life easier using JumpCloud. However, I cannot believe I had not published this one. Needless to say, it’s simple enough as always, but it talks you through how to install Firefox and Chrome using JumpCloud. Any questions please leave a comment or find me on Twitter.

# Script to download, Silent Install and then clean up once installed Mozila Firefox & Google Chrome
# Writen by

#Make temp folder for downloads.
mkdir "/tmp/browsers/";
cd "/tmp/browsers/";

#Download Chrome and Firefox.
curl -L -o /tmp/browsers/firefox.dmg "";
curl -L -o /tmp/browsers/chrome.dmg "";

#Mount DMGs
hdiutil attach /tmp/browsers/firefox.dmg;
hdiutil attach /tmp/browsers/chrome.dmg;

#Copy App to Applications
sudo cp -R "/Volumes/Firefox/" /Applications;
sudo cp -R "/Volumes/Google Chrome/Google" /Applications;

#Unmount DMG
hdiutil detach /Volumes/Firefox;
hdiutil detach "/Volumes/Google Chrome";

#Remove Temp Files (Temp Removed)
sudo rm -rf "/tmp/browsers/";

Leave a Comment