summary refs log tree commit diff stats
path: root/tools/niminst
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-06-10 00:52:05 +0200
committerAndreas Rumpf <rumpf_a@web.de>2016-06-10 00:52:05 +0200
commita9f5ffb4c77d1e4a4abf4093a98c269ed6eb6a88 (patch)
treef224f8436a0f6165d2ca40d35553d65a9f527a95 /tools/niminst
parent8bc90170e0f9e345632cf009b3f4de1a2a1817bd (diff)
downloadNim-a9f5ffb4c77d1e4a4abf4093a98c269ed6eb6a88.tar.gz
fixes a niminst regression
Diffstat (limited to 'tools/niminst')
-rw-r--r--tools/niminst/niminst.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/niminst/niminst.nim b/tools/niminst/niminst.nim
index b2983b23b..06a468cd5 100644
--- a/tools/niminst/niminst.nim
+++ b/tools/niminst/niminst.nim
@@ -635,7 +635,7 @@ proc xzDist(c: var ConfigData) =
     let oldDir = getCurrentDir()
     setCurrentDir(tmpDir)
     try:
-      if execShellCmd("XZ_OPT=-9 gtar Jcf $1.tar.xz $1 --exclude=.DS_Store" % proj) != 0:
+      if execShellCmd("XZ_OPT=-9 gtar Jcf $1.tar.xz $1 --exclude=.DS_Store" % proj) == 0:
         # try old 'tar' without --exclude feature:
         if execShellCmd("XZ_OPT=-9 tar Jcf $1.tar.xz $1" % proj) != 0:
           echo("External program failed")