mirror of
https://github.com/ivabus/www
synced 2024-11-25 14:15:06 +03:00
add default .jpg extension because at removed extensions
This commit is contained in:
parent
f907b23acc
commit
a1f11758ae
1 changed files with 2 additions and 2 deletions
4
.github/prepare-thumb-images.sh
vendored
4
.github/prepare-thumb-images.sh
vendored
|
@ -19,8 +19,8 @@ for row in $($packages | jq -r '.[] | @base64'); do
|
||||||
filename="${filename%.*}"
|
filename="${filename%.*}"
|
||||||
slug=$(_jq '.slug')
|
slug=$(_jq '.slug')
|
||||||
outputPath=$2/$(_jq '.slug').$extension
|
outputPath=$2/$(_jq '.slug').$extension
|
||||||
new_thumb_image_url="https://tea.xyz/Images/packages/$slug.$extension"
|
new_thumb_image_url="https://tea.xyz/Images/packages/$slug.jpg"
|
||||||
curl $dl_url -o ./packages_thumbs_images/$slug.$extension
|
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)
|
updated_packages=$(jq '(.[] | select(.slug == "'$slug'") | .thumb_image_url) |= "'$new_thumb_image_url'"' ./src/data/temp.json)
|
||||||
echo $updated_packages > $temp_packages
|
echo $updated_packages > $temp_packages
|
||||||
echo "update $slug"
|
echo "update $slug"
|
||||||
|
|
Loading…
Reference in a new issue