File tree 1 file changed +8
-5
lines changed
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -256,11 +256,14 @@ def self.app_management_permissions_granted?(app:, command:)
256
256
end
257
257
end
258
258
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
264
267
265
268
false
266
269
end
You can’t perform that action at this time.
0 commit comments