Fixing cache detection

This commit is contained in:
sh+git@codevoid.de 2019-10-26 13:24:49 +00:00
parent ce20a1b752
commit c8afadf4cf
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ create_thumb() {
local W="$2" # width
local H="$3" # height
local T="${F%%.*}-$H"
if ! [ -f "$THUMB_PATH/$T" ];
if ! [ -f "$THUMB_PATH/$T.gif" ] || [ -f "$THUMB_PATH/$T.jpeg" ];
then
case $(printf '%s' "${F##*.}" | tr '[:upper:]' '[:lower:]') in
gif) console "Creating Thumbnail: $THUMB_PATH/$T.gif"