From a1f11758ae7493f1c60bacb373d0951cbf6542cf Mon Sep 17 00:00:00 2001 From: neil Date: Fri, 18 Nov 2022 20:47:15 +0800 Subject: [PATCH] add default .jpg extension because at removed extensions --- .github/prepare-thumb-images.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/prepare-thumb-images.sh b/.github/prepare-thumb-images.sh index d9fdeba..079c935 100755 --- a/.github/prepare-thumb-images.sh +++ b/.github/prepare-thumb-images.sh @@ -19,8 +19,8 @@ for row in $($packages | jq -r '.[] | @base64'); do filename="${filename%.*}" slug=$(_jq '.slug') outputPath=$2/$(_jq '.slug').$extension - new_thumb_image_url="https://tea.xyz/Images/packages/$slug.$extension" - curl $dl_url -o ./packages_thumbs_images/$slug.$extension + new_thumb_image_url="https://tea.xyz/Images/packages/$slug.jpg" + curl $dl_url -o ./packages_thumbs_images/$slug.jpg updated_packages=$(jq '(.[] | select(.slug == "'$slug'") | .thumb_image_url) |= "'$new_thumb_image_url'"' ./src/data/temp.json) echo $updated_packages > $temp_packages echo "update $slug"