12 lines
502 B
Bash
Executable File
12 lines
502 B
Bash
Executable File
#!/bin/sh
|
|
|
|
TESTERVERSION=0.0.8
|
|
|
|
# Get the release information from the api for the specified version
|
|
curl -X GET "https://git.p-epsilon.com/api/v1/repos/Deukhoofd/PokemonScriptTester/releases/tags/$TESTERVERSION" -H "accept: application/json" |
|
|
# Parse as json, select the url we need to download the file
|
|
jq '.assets[] | select(.name=="PokemonScriptTester") .browser_download_url ' |
|
|
# Download the file at the given url
|
|
xargs curl > PokemonScriptTester
|
|
|
|
chmod +x PokemonScriptTester |