made 'koch web' work when current dir has a space in it

This commit is contained in:
Araq 2014-02-15 02:27:49 +01:00
commit d142824d65
3 changed files with 11 additions and 6 deletions

View file

@ -104,9 +104,8 @@ proc install(args: string) =
exec("sh ./install.sh $#" % args)
proc web(args: string) =
exec(("$# cc -r tools/nimweb.nim web/nimrod --putenv:nimrodversion=$#" &
" --path:$#") % [findNim(), NimrodVersion,
getCurrentDir().quoteIfContainsWhite])
exec("$# cc -r tools/nimweb.nim web/nimrod --putenv:nimrodversion=$#" %
[findNim(), NimrodVersion])
# -------------- boot ---------------------------------------------------------