Hello, Jamf community.
I am trying to create a script which I can deploy via Jamf to a number of clients. The script should check the OS version and push the installation of Security Update for Safari 13.1.1. Unfortunately it returns a error " text.txt: line 15: syntax error: unexpected end of file" and i am not able to understand why is this happening.
Here is the script:
!/bin/bash
sw_vers
if [[ "$ProductVersion" == "10.13.6" ]]; then
softwareupdate -i 'Safari13.1.1HighSierraAuto-13.1.1'
elif [[ "$ProductVersion" == "10.14.6" ]]; then
softwareupdate -i 'Safari13.1.1MojaveAuto-13.1.1'
sleep 1
exit 0