I have a script that installs updates using policy parameters to feed the update name (for reusability purposes). The install command is pretty simple:
softwareupdate --install "$4"
I have used this script to install several updates successfully, however I've run into an issue with the High Sierra 10.13.6 update. It appears as though Apple has included a trailing space on the package name of the update.
In manual testing, the following command fails ("No such update.")
softwareupdate --install "macOS High Sierra 10.13.6 Update-"
However, if I add a trailing space, the update is able to complete:
softwareupdate --install "macOS High Sierra 10.13.6 Update- "
I tried added a trailing space to the string in policy parameter 4, but Jamf doesn't pass it. Has anyone else run into this issue? Any ideas on how I could solve it without needing a new script?