From b5cdf39678ded2784d28cc1cdc5a0b8f6fbea8f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Steinh=C3=BCbl?= Date: Sat, 15 Jun 2024 23:38:45 +0200 Subject: [PATCH] build: start counting from one --- mrpack-to-slugs.sh | 2 +- slugs-to-packwiz.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mrpack-to-slugs.sh b/mrpack-to-slugs.sh index 432b594..96398c3 100755 --- a/mrpack-to-slugs.sh +++ b/mrpack-to-slugs.sh @@ -25,7 +25,7 @@ chmod 755 .cache/$MRPACK_NAME/modrinth.index.json # Get the slugs 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 project_id=$(echo $url | cut -d'/' -f5) diff --git a/slugs-to-packwiz.sh b/slugs-to-packwiz.sh index f6e8019..bdcd24a 100755 --- a/slugs-to-packwiz.sh +++ b/slugs-to-packwiz.sh @@ -32,7 +32,7 @@ cd "$PACKWIZ_MODPACK_FOLDER" length=$(echo "$SLUGS" | wc -l) -i=0 +i=1 for slug in $SLUGS; do echo "Processing $slug ($i / $length)"