From 5614b6b8b3b11b31e488c15890e9b36f3f967970 Mon Sep 17 00:00:00 2001 From: Denis Yantarev Date: Sun, 25 Dec 2016 18:34:33 +0300 Subject: [PATCH] Use real paths of symlinks when linking castle into home --- lib/homesick/actions/file_actions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/homesick/actions/file_actions.rb b/lib/homesick/actions/file_actions.rb index 255010a..a486b2c 100644 --- a/lib/homesick/actions/file_actions.rb +++ b/lib/homesick/actions/file_actions.rb @@ -42,7 +42,7 @@ module Homesick end def ln_s(source, destination) - source = Pathname.new(source) + source = Pathname.new(source).realpath destination = Pathname.new(destination) FileUtils.mkdir_p destination.dirname