Merge pull request #7587 from Rylan12/cask-zap-full-disk-access
brew cask zap prompt when Full Disk Access is needed
This commit is contained in:
commit
b2ccf3ba78
@ -326,7 +326,14 @@ module Cask
|
||||
next
|
||||
end
|
||||
|
||||
begin
|
||||
yield path, Pathname.glob(resolved_path)
|
||||
rescue Errno::EPERM
|
||||
raise if File.readable?(File.expand_path("~/Library/Application Support/com.apple.TCC"))
|
||||
|
||||
odie "Unable to remove some files. Please enable Full Disk Access for your terminal under " \
|
||||
"System Preferences → Security & Privacy → Privacy → Full Disk Access."
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user