mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-24 23:45:52 +00:00
press: fixing basedir being added twice to png destination path
This commit is contained in:
1 parent
1c2a304ee5
commit
c1be09c692
1 file changed
+1
-2
+1
-2
@@ -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]);
|
||||
|
||||
Reference in new issue
Block a user