]> Sergey Matveev's repositories - dotfiles.git/commitdiff
Do not remove source file
authorSergey Matveev <stargrave@stargrave.org>
Tue, 7 Sep 2021 10:26:18 +0000 (13:26 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 7 Sep 2021 10:26:18 +0000 (13:26 +0300)
img/bin/transcode-jpg.sh

index 882cce1f9f59cdd3b0c1731d7d9a2519bd0ab683..1f0977d671e4a47e9804306b721e0b99d258d70f 100755 (executable)
@@ -4,4 +4,3 @@ trap "rm -f \"$1\".jpegtran.jpg" HUP PIPE INT QUIT TERM EXIT
 jpegtran -optimize -progressive -perfect -copy all "$1" > "$1".jpegtran.jpg
 cjxl "$1".jpegtran.jpg "${1%.*}.jxl" -q 100 -e 9
 [ -s "${1%.*}.jxl" ]
-rm "$1"