From 78c2c2136fa153651ea00f5d6695b0d3a6c03a83 Mon Sep 17 00:00:00 2001 From: "Niels G. W. Serup" Date: Thu, 25 Aug 2016 11:13:15 +0200 Subject: [PATCH] Logic. --- scripts/resize-thumbnails.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/resize-thumbnails.sh b/scripts/resize-thumbnails.sh index 23491f8..61b598b 100755 --- a/scripts/resize-thumbnails.sh +++ b/scripts/resize-thumbnails.sh @@ -14,7 +14,7 @@ cd thumbnails for x in *; do large=$x small=../thumbnails-small/$x - if [ $large -nt $small ]; then + if ! [ -f $small ] || [ $large -nt $small ]; then convert $x -resize x"$thumbnail_height" $small fi done