From aed8ba8b7521465a8d05195ea67b0d0986cc10df Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sun, 29 Aug 2021 13:29:51 +0200 Subject: [PATCH] Adds some comments to what we're doing in the fetch_tester --- fetch_tester.sh | 3 +++ 1 file changed, 3 insertions(+) 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