diff options
| author | Markus Reiter | 2017-02-03 11:31:43 +0100 |
|---|---|---|
| committer | GitHub | 2017-02-03 11:31:43 +0100 |
| commit | 04637e8d370407865991d59898c2209326a01664 (patch) | |
| tree | 73194648896089faef03686962ace77c007cca87 /Library/Homebrew/cask | |
| parent | b6f3399cb3facababf4f6b1e6f7821edc2db554a (diff) | |
| parent | d94636cde921288aa7a33a0f368a3101fd8f3df3 (diff) | |
| download | brew-04637e8d370407865991d59898c2209326a01664.tar.bz2 | |
Merge pull request #1883 from reitermarkus/override-macos-version
Allow overriding `MacOS.version`.
Diffstat (limited to 'Library/Homebrew/cask')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cli.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli.rb b/Library/Homebrew/cask/lib/hbc/cli.rb index 36fae3034..2b2211877 100644 --- a/Library/Homebrew/cask/lib/hbc/cli.rb +++ b/Library/Homebrew/cask/lib/hbc/cli.rb @@ -142,6 +142,10 @@ module Hbc end def self.process(arguments) + unless ENV["MACOS_VERSION"].nil? + MacOS.full_version = ENV["MACOS_VERSION"] + end + command_string, *rest = *arguments rest = process_options(rest) command = Hbc.help ? "help" : lookup_command(command_string) |
