Anyone attempting to use the "Install Latest Skype for Mac" script provided through Jamf Nation's Scripts section may find it no longer works. @amartin253, may we suggest changing your curl strategy to leverage a user agent, as per the example below? At least for now Microsoft appears to be respecting the user agent to facilitate redirects to an OS-specific installer download.
#!/bin/bash
## This script is a modification of the script provided by Adam Martin on Jamf Nation
## Last updated on 06/06/19 by Floating Orchard
# Installing Latest Skype for Mac
curl -L -A "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15" -o /tmp/skype.dmg https://go.skype.com/skype.download
hdiutil mount -nobrowse /tmp/skype.dmg -mountpoint /Volumes/skype
rsync -vaz /Volumes/skype/Skype.app/ /Applications/Skype.app
hdiutil unmount "/Volumes/skype"
rm /tmp/skype.dmg
Cheers!
Floating Orchard Inc.
