From 090d1ca18735cae423ff46ec86cb6c312f1a8ed1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Sat, 9 Sep 2023 11:27:24 +0100 Subject: [PATCH] fix crushpng --- lib/crushpng.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/crushpng.sh b/lib/crushpng.sh index c014e7c..436f38f 100755 --- a/lib/crushpng.sh +++ b/lib/crushpng.sh @@ -2,7 +2,7 @@ set -ex -[ "$(wc -c $1 | awk '{print $1}')" -le $3 ] && exit 0 +[ "$(wc -c $1 | awk '{print $1}')" -le $3 ] && (cp $1 $2; exit 0) for i in $(seq 100 -1 0); do cat $1 | pngquant --quality 0-$i - > $2