Fix install not working when spaces are in bin path

This commit is contained in:
Chris Rohlfs 2016-11-21 21:14:28 +13:00
commit 4fa4404df8

View file

@ -317,7 +317,7 @@ proc buildFromDir(pkgInfo: PackageInfo, paths: seq[string], forRelease: bool) =
createDir(outputDir)
try:
doCmd(getNimBin() & " $# $# --noBabelPath $# $# \"$#\"" %
doCmd("\"" & getNimBin() & "\" $# $# --noBabelPath $# $# \"$#\"" %
[pkgInfo.backend, releaseOpt, args, outputOpt,
realDir / bin.changeFileExt("nim")])
except NimbleError: