fix: ignore quarantine for linux cask download

This commit is contained in:
Edward 2023-10-25 19:25:29 +08:00
parent 141ac157fd
commit d2c15d04a1
No known key found for this signature in database
3 changed files with 19 additions and 0 deletions

View File

@ -114,3 +114,5 @@ module Cask
end
end
end
require "extend/os/cask/download"

View File

@ -0,0 +1,4 @@
# typed: true
# frozen_string_literal: true
require "extend/os/linux/cask/download" if OS.linux?

View File

@ -0,0 +1,13 @@
# typed: true
# frozen_string_literal: true
module Cask
class Download
undef quarantine
def quarantine(_path)
opoo "Cannot quarantine download: No xattr available on linux." if @quarantine
nil
end
end
end