Skip to content

Commit

Permalink
Update main.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Mqxx authored Feb 20, 2025
1 parent 28e4d08 commit e8dfc83
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,12 @@ echo "Fetch asset index URL from \"$package_url\"."
asset_index_url=$(curl -L $package_url | jq -r ".assetIndex.url")

echo "::group:: Downloading additional assets from \"$asset_index_url\"."
assets_path="$INPUT_PATH/assets"
export assets_path="$INPUT_PATH/assets"

echo "Saving additional assets to \"$assets_path\"."

asset_list=$(curl -L $asset_index_url | jq -r '.objects | to_entries[] | "\(.key) \(.value.hash)"')

env assets_path="$assets_path"
echo "$asset_list" | while read -r path hash; do
echo "$path $hash"
done | xargs -n 2 -P "$INPUT_PARALLEL_DOWNLOADS" -I {} sh -c '
Expand Down

0 comments on commit e8dfc83

Please sign in to comment.