From 32fa1b848f2337e4b50d3221765c5b265306ff4d Mon Sep 17 00:00:00 2001 From: "taha@asks2" Date: Fri, 13 Sep 2019 02:36:01 +0200 Subject: [PATCH] Fixed low-res photos getting re-created every run. It was missing a touch to the lastrun file in case of success. Now added. --- chertex.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chertex.sh b/chertex.sh index 3b3f6a0..9ab74cd 100755 --- a/chertex.sh +++ b/chertex.sh @@ -160,6 +160,9 @@ if [ $# -eq 1 ]; then echo " Shrinking $largephotobasename.jpg" convert $largephotoname.jpg -define jpeg:extent=300kb $largephotoname.jpg done + # update the modification and access time on the photosastrun file + touch "$photoslastrun" + fi # short delay to enable on-screen reading of previous echo simpledelay.sh 2