Has anyone put together a policy/script to uninstall homebrew with Jamf?
They have an uninstall script located here:
https://github.com/homebrew/install#uninstall-homebrew
But if I upload that to Jamf and run it with "--quiet --force" it throws an error shown below. Seems like something from Jamf is adding a "/" argument to the script and it's causing it to fail.
Script exit code: 1
Script result: Warning: Unrecognized option: '/'
Homebrew Uninstaller
Usage: /Library/Application Support/JAMF/tmp/uninstallHomebrew.sh [options]
-p, --path=PATH Sets Homebrew prefix. Defaults to /usr/local.
--skip-cache-and-logs
Skips removal of HOMEBREW_CACHE and HOMEBREW_LOGS.
-f, --force Uninstall without prompting.
-q, --quiet Suppress all output.
-n, --dry-run Simulate uninstall but don't remove anything.
-h, --help Display this message.