diff --git a/lib/cask.rb b/lib/cask.rb index 3edf1866e..34c0b8964 100644 --- a/lib/cask.rb +++ b/lib/cask.rb @@ -98,10 +98,10 @@ class Cask puts "#{symlink_destination} exists but is symlink; removing and relinking" puts "#{symlink_destination} -> #{symlink_target}" symlink_destination.delete - symlink_destination.make_symlink(symlink_destination) + symlink_destination.make_symlink(symlink_target) else puts "#{symlink_destination} -> #{symlink_target}" - symlink_destination.make_symlink(symlink_destination) + symlink_destination.make_symlink(symlink_target) end end end