This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
## Bits shamelessly borrowed from Graham Pugh - https://gist.github.com/grahampugh/836547859c18fefe1dba6ba8c093accc | |
## Then reversed to only pull down files which either do not exist in the DP or whose md5 doesn't match | |
## | |
## This script relies on a Jamf API role/client and a local identity file of the following format: | |
## {"client_name":"test_for_screenshot","client_id":"a7682e67-a276-448b-83af-9c83be5e02f4","client_secret":"ubPrXqRRyc0jRLFOY9iJYGpCjHiJc1M-tRLlCFb9aWZhtqf7iC9UpQG_dO1ZkvNF","grant_type":"client_credentials"} | |
## | |
## This is most easily obtained by creating an api client, enabling it and copying the data from the popup, then pasting it into a file | |
## | |
## |