From c1be09c692900bbfe9f1e44616336cc7a78a1394 Mon Sep 17 00:00:00 2001 From: Andrea D'Amore Date: Fri, 6 Jan 2012 15:25:54 +0100 Subject: [PATCH] press: fixing basedir being added twice to png destination path --- CommonJS/bin/press | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CommonJS/bin/press b/CommonJS/bin/press index 8d1b60025..925895521 100755 --- a/CommonJS/bin/press +++ b/CommonJS/bin/press @@ -371,8 +371,7 @@ function pngcrushDirectory(directory) { var pngs = directoryPath.glob("**/*.png"); system.stderr.print("Running pngcrush on " + pngs.length + " pngs:"); - pngs.forEach(function(dst) { - var dstPath = directoryPath.join(dst); + pngs.forEach(function(dstPath) { var tmpPath = FILE.path(dstPath+".tmp"); var p = OS.popen(["pngcrush", "-rem", "alla", "-reduce", /*"-brute",*/ dstPath, tmpPath]);