diff options
author | Michał Zieliński <michal@zielinscy.org.pl> | 2013-12-11 22:27:39 +0100 |
---|---|---|
committer | Michał Zieliński <michal@zielinscy.org.pl> | 2013-12-11 22:27:39 +0100 |
commit | 39cabcdd2702098825eba32fcbc6737b9aa45e6e (patch) | |
tree | 3b7c197d58d2a0f55692df9dc9a2416c53944a09 /tools/niminst/niminst.nim | |
parent | c36319727558f92a47f7aa5fed1d696d63b48d65 (diff) | |
download | Nim-39cabcdd2702098825eba32fcbc6737b9aa45e6e.tar.gz |
Use quoteShell in stdlib, where appropriate.
Diffstat (limited to 'tools/niminst/niminst.nim')
-rw-r--r-- | tools/niminst/niminst.nim | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/niminst/niminst.nim b/tools/niminst/niminst.nim index 25ec0d283..0c9717e12 100644 --- a/tools/niminst/niminst.nim +++ b/tools/niminst/niminst.nim @@ -14,7 +14,7 @@ when haveZipLib: import zipfiles import - os, strutils, parseopt, parsecfg, strtabs, streams, debcreation + os, osproc, strutils, parseopt, parsecfg, strtabs, streams, debcreation const maxOS = 20 # max number of OSes @@ -486,7 +486,7 @@ proc setupDist(c: var TConfigData) = if c.innoSetup.path.len == 0: c.innoSetup.path = "iscc.exe" var outcmd = if c.outdir.len == 0: "build" else: c.outdir - var cmd = "$# $# /O$# $#" % [quoteIfContainsWhite(c.innoSetup.path), + var cmd = "$# $# /O$# $#" % [quoteShell(c.innoSetup.path), c.innoSetup.flags, outcmd, n] echo(cmd) if execShellCmd(cmd) == 0: @@ -587,4 +587,3 @@ if actionZip in c.actions: quit("libzip is not installed") if actionDeb in c.actions: debDist(c) - |