Merge pull request #73 from philip-wernersbach/ln-fix

Fix bug in symlinking when there's a space in a path.
This commit is contained in:
Dominik Picheta 2014-12-07 22:11:56 +00:00
commit 2fb06b09b4

View file

@ -511,7 +511,7 @@ proc installFromDir(dir: string, latest: bool, options: TOptions,
# some other package's binary!
if existsFile(binDir / bin): removeFile(binDir / cleanBin)
echo("Creating symlink: ", pkgDestDir / bin, " -> ", binDir / cleanBin)
doCmd("ln -s \"" & pkgDestDir / bin & "\" " & binDir / cleanBin)
createSymlink(pkgDestDir / bin, binDir / cleanBin)
elif defined(windows):
let dest = binDir / cleanBin.changeFileExt("bat")
echo("Creating stub: ", pkgDestDir / bin, " -> ", dest)