quarantine: allow skipping the app management permissions prompt.
If we know that we don't care about this prompt, let's allow setting a variable to avoid alarming users.
This commit is contained in:
parent
b337351d5c
commit
10ad72c348
@ -256,11 +256,14 @@ module Cask
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Allow undocumented way to skip the prompt.
|
||||||
|
if ENV["HOMEBREW_NO_APP_MANAGEMENT_PERMISSIONS_PROMPT"]
|
||||||
opoo <<~EOF
|
opoo <<~EOF
|
||||||
Your terminal does not have App Management permissions, so Homebrew will delete and reinstall the app.
|
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.
|
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.
|
To fix this, go to System Settings > Privacy & Security > App Management and add or enable your terminal.
|
||||||
EOF
|
EOF
|
||||||
|
end
|
||||||
|
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user