Merge pull request #3563 from reitermarkus/fix-parenthesis

Fix messed up parenthesis.
This commit is contained in:
Markus Reiter 2017-12-12 17:09:40 +01:00 committed by GitHub
commit 7b558e0522
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,7 +96,7 @@ module Hbc
if command.respond_to?(:run) if command.respond_to?(:run)
# usual case: built-in command verb # usual case: built-in command verb
command.run(*args) command.run(*args)
elsif require?(which("brewcask-#{command}.rb"), ENV["HOMEBREW_PATH"]) elsif require?(which("brewcask-#{command}.rb", ENV["HOMEBREW_PATH"]))
# external command as Ruby library on PATH, Homebrew-style # external command as Ruby library on PATH, Homebrew-style
elsif command.to_s.include?("/") && require?(command.to_s) elsif command.to_s.include?("/") && require?(command.to_s)
# external command as Ruby library with literal path, useful # external command as Ruby library with literal path, useful