Skip to content

Commit e5406f7

Browse files
authored
Merge pull request #19557 from Homebrew/no_app_management_permissions_prompt
quarantine: allow skipping the app management permissions prompt.
2 parents a473888 + 2a7c751 commit e5406f7

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Library/Homebrew/cask/quarantine.rb

+8-5
Original file line numberDiff line numberDiff line change
@@ -256,11 +256,14 @@ def self.app_management_permissions_granted?(app:, command:)
256256
end
257257
end
258258

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

265268
false
266269
end

0 commit comments

Comments
 (0)