diff --git a/lib/bcu/command/pin_add.rb b/lib/bcu/command/pin_add.rb index d294d07..ebca00d 100644 --- a/lib/bcu/command/pin_add.rb +++ b/lib/bcu/command/pin_add.rb @@ -36,7 +36,7 @@ def run_add_pin(cask_name) end formatted_cask_name = "#{Tty.green}#{cask_name}#{Tty.reset}" - formatted_version = "#{Tty.magenta}#{cask.versions.first}#{Tty.reset}" + formatted_version = "#{Tty.magenta}#{cask.installed_version}#{Tty.reset}" puts "Pinned: #{formatted_cask_name} in version #{formatted_version}" end