Many changes
This commit is contained in:
43
scripts/shell/modrinth-get-versions.sh
Executable file
43
scripts/shell/modrinth-get-versions.sh
Executable file
@@ -0,0 +1,43 @@
|
||||
#!/bin/env bash
|
||||
|
||||
project_ids=(
|
||||
51shyZVL
|
||||
9s6osm5g
|
||||
JYQhtZtO
|
||||
KuNKN7d2
|
||||
LQ3K71Q1
|
||||
NNAgCjsB
|
||||
P7dR8mSH
|
||||
VSNURh3q
|
||||
c7m1mi73
|
||||
eXts2L7r
|
||||
fQEb0iXm
|
||||
g96Z4WVZ
|
||||
gvQqBUqZ
|
||||
mOgUt4GM
|
||||
uXXizFIs
|
||||
wnEe9KBa
|
||||
veinminer
|
||||
veinminer-client
|
||||
)
|
||||
|
||||
# api_ids_query="%5B"
|
||||
api_ids_query="["
|
||||
|
||||
for project_id in "${project_ids[@]}"; do
|
||||
api_ids_query+="\\\"$project_id\\\""
|
||||
done
|
||||
|
||||
# api_ids_query="${api_ids_query%",%20"}"
|
||||
|
||||
# api_ids_query+="%5D"
|
||||
api_ids_query+="]"
|
||||
|
||||
api_command="wget -O- 'https://api.modrinth.com/v2/projects?ids=$api_ids_query'"
|
||||
|
||||
api_response=$("$api_command")
|
||||
|
||||
echo "$api_command"
|
||||
echo "$api_response"
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user