1
0
Fork 0
mirror of https://github.com/xHyroM/aetheria.git synced 2024-11-21 15:11:04 +01:00

build: start counting from one

This commit is contained in:
Jozef Steinhübl 2024-06-15 23:38:45 +02:00
parent 13b42fb4e4
commit b5cdf39678
No known key found for this signature in database
GPG key ID: E6BC90C91973B08F
2 changed files with 2 additions and 2 deletions

View file

@ -25,7 +25,7 @@ chmod 755 .cache/$MRPACK_NAME/modrinth.index.json
# Get the slugs # Get the slugs
length=$(jq -r '.files | length' .cache/$MRPACK_NAME/modrinth.index.json) length=$(jq -r '.files | length' .cache/$MRPACK_NAME/modrinth.index.json)
i=0 i=1
jq -r '.files[] | .downloads[0]' .cache/$MRPACK_NAME/modrinth.index.json | while read -r url; do jq -r '.files[] | .downloads[0]' .cache/$MRPACK_NAME/modrinth.index.json | while read -r url; do
project_id=$(echo $url | cut -d'/' -f5) project_id=$(echo $url | cut -d'/' -f5)

View file

@ -32,7 +32,7 @@ cd "$PACKWIZ_MODPACK_FOLDER"
length=$(echo "$SLUGS" | wc -l) length=$(echo "$SLUGS" | wc -l)
i=0 i=1
for slug in $SLUGS; do for slug in $SLUGS; do
echo "Processing $slug ($i / $length)" echo "Processing $slug ($i / $length)"