brew cask zap prompts when Full Disk Access is needed

This commit is contained in:
Rylan Polster 2020-05-17 14:07:14 -04:00
parent 9fcaa46cdf
commit d0bd687a3d

View File

@ -326,7 +326,14 @@ module Cask
next next
end end
begin
yield path, Pathname.glob(resolved_path) 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
end end