I'm trying to script a direct download of Citrix Workspace so I don't have to manual update the pkg for each patch.
Unfortunately, the download link is a redirect, and the URL changes regularly. Does anyone know the URL for a direct download?
My current script does this:
#!/bin/sh
curl -L -O "https://downloads.citrix.com/16002/CitrixWorkspaceApp.dmg?__gda__=1559853370_f26ea92eb50e024708c1e0cb9dc29474"
mv CitrixWorkspaceApp.dmg?__gda__=1559853370_f26ea92eb50e024708c1e0cb9dc29474 /tmp/CitrixWorkspaceApp.dmg
hdiutil attach /tmp/CitrixWorkspaceApp.dmg -nobrowse
installer -pkg "/Volumes/Citrix Workspace/Install Citrix Workspace.pkg" -target /
citrixmnt="$(hdiutil info | grep "/Volumes/Citrix Workspace" | awk '{ print $1 }')"
hdiutil detach $citrixmnt
rm -f /tmp/CitrixWorkspaceApp.dmg
