diff --git a/lib/hub/commands.rb b/lib/hub/commands.rb index 9feb17f1b8bb19c586e08a31744d4d15c86c5e98..c285fa4ba50ce9917748178a98a922f286974133 100644 --- a/lib/hub/commands.rb +++ b/lib/hub/commands.rb @@ -499,7 +499,7 @@ help # # Returns a Boolean. def command?(name) - `type -t #{command}` + `type -t #{name}` $?.success? end