Couldn't find a script that did this. We don't use this a lot but I was asked to patch Cisco Webex to ensure that the users that do have it were on the latest version.
This is based on a script we've been using that does the same thing for chrome.
Hey @strayer you've got a typo in the script. Line 31 has loggedinUser where it should be loggedInUser (capital i). Or you need to change the variable in elsewhere so it's lowercase i. ¯_(ツ)_/¯
And "[[ ]]" and "==" are undefined in POSIX shell. Single brackets and single equals work fine.
Check out www.shellcheck.net. It's great for checking bash and sh scripts for possible problems and keeping your code up to date with the latest changes in those scripting environments. ;-)
Oh, and thanks for the script too! Another app down!
I moved it to my Deprecated folder: https://github.com/theadamcraig/jamf-scripts/blob/master/Deprecated/Cisco%20Webex%20-%20install%20la...
It should still work, but I use Installomator now: https://github.com/Installomator/Installomator