The next script talks you through how to install Google Drive File Stream for macOS using JumpCloud Commands. It follows a similar structure to the other commands I have posted. Creates a temp repo on the mac, downloads the latest version, mounts, installs, and removes the temp files. Simple but effective. I have broken this out of this post as I am separating all of the commands into there own blog post.
Install Google Drive File Stream for macOS using JumpCloud Commands.
# Script to download, Silent Install and then clean up once installed Google Drive FileStream # Writen by twitter.com/richhickson # www.RichardHickson.com #Make temp folder for downloads. mkdir "/tmp/filestream/"; cd "/tmp/filestream/"; #Download filestream. curl -L -o /tmp/filestream/GoogleDriveFileStream.dmg "https://dl.google.com/drive-file-stream/GoogleDriveFileStream.dmg"; #Mount hdiutil mount GoogleDriveFileStream.dmg; #Install sudo installer -pkg /Volumes/Install\ Google\ Drive\ File\ Stream/GoogleDriveFileStream.pkg -target "/Volumes/Macintosh HD"; #UnMount hdiutil unmount /Volumes/Install\ Google\ Drive\ File\ Stream/; #Tidy up sudo rm -rf /tmp/filestream/