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:
commit
2fb06b09b4
1 changed files with 16 additions and 16 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue