Merge pull request #15512 from Volatus/fix/cask-permissions-issue

cask/quarantine: fix exception not being caught
This commit is contained in:
Bo Anderson 2023-06-05 17:20:37 +01:00 committed by GitHub
commit 6f8e858bc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -217,7 +217,7 @@ module Cask
File.write(test_file, "")
test_file.delete
return true
rescue Errno::EACCES
rescue Errno::EACCES, Errno::EPERM
# Using error handler below
end
else