diff options
| author | Markus Reiter | 2017-11-28 20:22:46 +0100 | 
|---|---|---|
| committer | Markus Reiter | 2017-11-29 00:12:17 +0100 | 
| commit | 5d449cf34e659dfc21ef67fbc4a0dbc70718e904 (patch) | |
| tree | 7428263f7c971e6d7c18dce8ca8c411537fc0bf1 /Library/Homebrew/cask | |
| parent | 2b7ecb47934018b95b681ee5a49f86286242c838 (diff) | |
| download | brew-5d449cf34e659dfc21ef67fbc4a0dbc70718e904.tar.bz2 | |
Fix external Cask commands.
Diffstat (limited to 'Library/Homebrew/cask')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cli.rb | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli.rb b/Library/Homebrew/cask/lib/hbc/cli.rb index 215b59843..e2deb6f67 100644 --- a/Library/Homebrew/cask/lib/hbc/cli.rb +++ b/Library/Homebrew/cask/lib/hbc/cli.rb @@ -113,9 +113,9 @@ module Hbc            # other Ruby libraries must do everything via "require"            klass.run(*args)          end -      elsif which("brewcask-#{command}") +      elsif external_command = which("brewcask-#{command}", ENV["HOMEBREW_PATH"])          # arbitrary external executable on PATH, Homebrew-style -        exec "brewcask-#{command}", *ARGV[1..-1] +        exec external_command, *ARGV[1..-1]        elsif Pathname.new(command.to_s).executable? &&              command.to_s.include?("/") &&              !command.to_s.match(/\.rb$/)  | 
