Skip to content

Commit

Permalink
press: fixing basedir being added twice to png destination path
Browse files Browse the repository at this point in the history
  • Loading branch information
anddam committed Jan 6, 2012
1 parent 1c2a304 commit c1be09c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CommonJS/bin/press
Expand Up @@ -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]);
Expand Down

0 comments on commit c1be09c

Please sign in to comment.