Merge pull request #154 from singular0/symlink_realpath

Use real paths of symlinks when linking castle into home
This commit is contained in:
Jeremy Cook
2017-03-19 22:02:01 -04:00
committed by GitHub

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