Fix messed up parenthesis.

This commit is contained in:
Markus Reiter 2017-12-11 23:01:26 +01:00
parent f42d8acde3
commit 3c988c0403

View File

@ -96,7 +96,7 @@ module Hbc
if command.respond_to?(:run)
# usual case: built-in command verb
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
elsif command.to_s.include?("/") && require?(command.to_s)
# external command as Ruby library with literal path, useful