#!/bin/sh echo Updating modlist... find mods -type f -name "*.pw.toml" -print0 \ | xargs -0 -I{} -P16 \ tomlq -r '"
[" + .name + "](" + (.update | (select(.modrinth) | map("https://modrinth.com/mod/" + .["mod-id"])[0]) // (select(.curseforge) | map("https://legacy.curseforge.com/projects/" + (.["project-id"] | tostring))[0])) + ")"' {} \ | sort > Modlist.md printf "$(cat README.template.md)" "$(cat Modlist.md)" > README.md echo Update complete.