update
parent
466b699e4c
commit
ba2184080d
@ -1,5 +1,11 @@
|
||||
#!/bin/sh
|
||||
echo Updating modlist...
|
||||
find mods -type f -name "*.pw.toml" -print0 | xargs -0 -I{} -P16 tomlq -r '"<br>[" + .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
|
||||
find mods -type f -name "*.pw.toml" -print0 \
|
||||
| xargs -0 -I{} -P16 \
|
||||
tomlq -r '"<br>[" + .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.
|
||||
|
Loading…
Reference in New Issue