Merge pull request #19557 from Homebrew/no_app_management_permissions_prompt

quarantine: allow skipping the app management permissions prompt.
This commit is contained in:
Mike McQuaid 2025-03-21 08:08:40 +00:00 committed by GitHub
commit e5406f7ba0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -256,11 +256,14 @@ module Cask
end
end
opoo <<~EOF
Your terminal does not have App Management permissions, so Homebrew will delete and reinstall the app.
This may result in some configurations (like notification settings or location in the Dock/Launchpad) being lost.
To fix this, go to System Settings > Privacy & Security > App Management and add or enable your terminal.
EOF
# Allow undocumented way to skip the prompt.
if ENV["HOMEBREW_NO_APP_MANAGEMENT_PERMISSIONS_PROMPT"]
opoo <<~EOF
Your terminal does not have App Management permissions, so Homebrew will delete and reinstall the app.
This may result in some configurations (like notification settings or location in the Dock/Launchpad) being lost.
To fix this, go to System Settings Privacy & Security App Management and add or enable your terminal.
EOF
end
false
end