From e342897a913c677b46e7c4cce7d55756e01bc170 Mon Sep 17 00:00:00 2001 From: phinze Date: Sat, 10 Mar 2012 14:25:42 -0600 Subject: [PATCH] fix linkapps, which was making circular symlinks whoopsie --- lib/cask.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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