diff options
| author | Esther W | 2017-05-18 13:08:19 -0700 |
|---|---|---|
| committer | Esther W | 2017-05-18 13:08:19 -0700 |
| commit | 37222c195364e3e1c04ee8675a5f0470c2284713 (patch) | |
| tree | 598c3929571c2f75e6697e35bc4ef4353c36884e /Library | |
| parent | 0977b4a17d92853a952bcba643cfd3dac21db944 (diff) | |
| download | brew-37222c195364e3e1c04ee8675a5f0470c2284713.tar.bz2 | |
Fix implicit conversion of nil into string error
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cli.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli.rb b/Library/Homebrew/cask/lib/hbc/cli.rb index 37784f4c3..c8fe39171 100644 --- a/Library/Homebrew/cask/lib/hbc/cli.rb +++ b/Library/Homebrew/cask/lib/hbc/cli.rb @@ -113,7 +113,7 @@ module Hbc if command.respond_to?(:run) # usual case: built-in command verb command.run(*rest) - elsif require?(which("brewcask-#{command}.rb")) + elsif require?(which("brewcask-#{command}.rb").to_s) # external command as Ruby library on PATH, Homebrew-style elsif command.to_s.include?("/") && require?(command.to_s) # external command as Ruby library with literal path, useful |
