Use real paths of symlinks when linking castle into home

This commit is contained in:
Denis Yantarev
2016-12-25 18:34:33 +03:00
parent 1d398587d0
commit 5614b6b8b3

View File

@@ -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