Resolve paths when using XDG dirs, fixes #311

This commit is contained in:
2022-02-05 16:44:00 +01:00
parent 51690d1df3
commit e40777a5d3
2 changed files with 7 additions and 2 deletions

View File

@@ -335,6 +335,7 @@ useXDG :: IO Bool
useXDG = isJust <$> lookupEnv "GHCUP_USE_XDG_DIRS"
-- | Like 'relpath'. Assumes the inputs are resolved in case of symlinks.
relativeSymlink :: FilePath -- ^ the path in which to create the symlink
-> FilePath -- ^ the symlink destination
-> FilePath