summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorUrban Müller2015-10-12 19:03:30 +0200
committerUrban Müller2015-10-12 19:03:30 +0200
commit5fc9447678d6079107a9c6fdc588cbd1679b76e7 (patch)
tree3cef9d34001fdaa658ec6dbe078a221fcac43ec7 /it.class
parent745b56e0aecaa952aff61c47824a190f452cda36 (diff)
downloaditools-5fc9447678d6079107a9c6fdc588cbd1679b76e7.tar.gz
itools-5fc9447678d6079107a9c6fdc588cbd1679b76e7.tar.bz2
itools-5fc9447678d6079107a9c6fdc588cbd1679b76e7.zip
no need for subshell
Diffstat (limited to 'it.class')
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index 2ab3c1d..f6a1713 100644
--- a/it.class
+++ b/it.class
@@ -694,7 +694,7 @@ static function imageconvert($p)
$cmdoutput = it::exec('( ' . $ultratimeout . 'gm convert 2>&1 {-opts} {in} {type}:{out} || echo "SHELL ERROR $?" ) | grep -v " iCCP: "', $p);
if ($p['type'] == "png")
- it::exec('(pngcrush.sh 2>/dev/null {out} {out}.tmp && mv {out}.tmp {out}); rm -f {out}.tmp', $p);
+ it::exec('pngcrush.sh 2>/dev/null {out} {out}.tmp && mv {out}.tmp {out} || rm {out}.tmp', $p);
return $cmdoutput === "";
}