#!/bin/sh -ex t=$(TMPDIR=. mktemp) pngcrush -rem alla -rem allb "$1" $t mv $t "$1"