aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib/hbc/container/xz.rb
diff options
context:
space:
mode:
authorMarkus Reiter2017-12-01 23:59:04 +0100
committerMarkus Reiter2017-12-02 00:10:55 +0100
commit96733bcb2e6836c55bb2e3fea4324c5f38061355 (patch)
tree3c3a8a91e34de19a7f5243b25f46ee5425a6705a /Library/Homebrew/cask/lib/hbc/container/xz.rb
parent76c64f9bbf54c9f3b6915469f170d1f8c02be208 (diff)
downloadbrew-96733bcb2e6836c55bb2e3fea4324c5f38061355.tar.bz2
Support environment filtering in Casks.
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/container/xz.rb')
-rw-r--r--Library/Homebrew/cask/lib/hbc/container/xz.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/container/xz.rb b/Library/Homebrew/cask/lib/hbc/container/xz.rb
index cd9f9aee2..4086ae188 100644
--- a/Library/Homebrew/cask/lib/hbc/container/xz.rb
+++ b/Library/Homebrew/cask/lib/hbc/container/xz.rb
@@ -10,7 +10,7 @@ module Hbc
end
def extract
- if (unxz = which("unxz")).nil?
+ unless unxz = which("unxz", PATH.new(ENV["PATH"], HOMEBREW_PREFIX/"bin"))
raise CaskError, "Expected to find unxz executable. Cask '#{@cask}' must add: depends_on formula: 'xz'"
end