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