diff --git a/fetch_tester.sh b/fetch_tester.sh index 5ed76e7..e4d0a5d 100755 --- a/fetch_tester.sh +++ b/fetch_tester.sh @@ -2,6 +2,9 @@ TESTERVERSION=0.0.1 +# 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 \ No newline at end of file