From 4fa4404df831f10e072e872580bca0a57f0a83b5 Mon Sep 17 00:00:00 2001 From: Chris Rohlfs Date: Mon, 21 Nov 2016 21:14:28 +1300 Subject: [PATCH 1/2] Fix install not working when spaces are in bin path --- src/nimble.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nimble.nim b/src/nimble.nim index fbe605f..38d9d11 100644 --- a/src/nimble.nim +++ b/src/nimble.nim @@ -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: From bcbb85c5e438b2f62efd6fda0bb283b1feb6a60c Mon Sep 17 00:00:00 2001 From: Chris Rohlfs Date: Tue, 22 Nov 2016 01:41:40 +1300 Subject: [PATCH 2/2] Fix 'compile' not working when spaces are in bin path --- src/nimble.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nimble.nim b/src/nimble.nim index 38d9d11..2a9dfc9 100644 --- a/src/nimble.nim +++ b/src/nimble.nim @@ -628,7 +628,7 @@ proc compile(options: Options) = echo("Compiling ", bin, " (", pkgInfo.name, ") using ", backend, " backend...") - doCmd(getNimBin() & " $# --noBabelPath $# \"$#\"" % + doCmd("\"" & getNimBin() & "\" $# --noBabelPath $# \"$#\"" % [backend, args, bin]) proc search(options: Options) =