diff --git a/scripts/gen_thumbnails.sh b/scripts/gen_thumbnails.sh index 15d12a4b..7502d333 100755 --- a/scripts/gen_thumbnails.sh +++ b/scripts/gen_thumbnails.sh @@ -9,6 +9,7 @@ THUMB_HEIGHT=10000 # height: auto; thumbnail() { echo "convert \"$1\" -thumbnail ${THUMB_WIDTH}x${THUMB_HEIGHT} \"${1%.*}-thumb.jpg\"" convert "$1" -thumbnail ${THUMB_WIDTH}x${THUMB_HEIGHT} "${1%.*}-thumb.jpg" + git add "$1" "${1%.*}-thumb.jpg" "$STATIC_DIR"samples.sha256 } [ ! -f "$STATIC_DIR"samples.sha256 ] && touch "$STATIC_DIR"samples.sha256