โ05-24-2022 04:43 AM
Quick Command script to deploy Google Drive to Mac users thru Commands. I have it as a once a day trigger. If installed it will skip installation.
# Script to download, Silent Install and then clean up once installed Google Drive.
# Originally from Richard Hickson (https://richardhickson.com/blog/)
# Modified and updated by Fulgubbe
if [ -d /Applications/Google\ Drive.app/ ];
then
echo "Already Installed"
exit 0
else
#Make temp folder for downloads.
mkdir "/tmp/gdrive/"; cd "/tmp/gdrive/";
#Download filestream.
curl -L -o /tmp/gdrive/GoogleDrive.dmg "https://dl.google.com/drive-file-stream/GoogleDrive.dmg";
#Mount
hdiutil mount GoogleDrive.dmg;
#Install
sudo installer -pkg /Volumes/Install\ Google\ Drive/GoogleDrive.pkg -target "/";
#UnMount
hdiutil unmount /Volumes/Install\ Google\ Drive/;
#Tidy up
sudo rm -rf /tmp/gdrive/
fi
โ05-24-2022 11:03 AM
This is pretty awesome! We will be soon having this live in a community repo here on the community site.
New to the site? Take a look at these additional resources:
Ready to join us? You can register here.