From: Sergey Matveev Date: Tue, 7 Sep 2021 10:26:18 +0000 (+0300) Subject: Do not remove source file X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=04eb969448d01de9ce776cb760fe92657d53c41b Do not remove source file --- diff --git a/img/bin/transcode-jpg.sh b/img/bin/transcode-jpg.sh index 882cce1..1f0977d 100755 --- a/img/bin/transcode-jpg.sh +++ b/img/bin/transcode-jpg.sh @@ -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"