Skip to content

Commit

Permalink
curl GH API for latest release
Browse files Browse the repository at this point in the history
  • Loading branch information
bretonics committed Apr 3, 2021
1 parent 8750867 commit 8a02704
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions setup
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Download and start setup process
curl https://codeload.github.com/bretonics/Setup/zip/v1.0.0 -o Setup.zip
curl https://api.github.com/repos/bretonics/Setup/zipball/v1.0.0 -o Setup.zip
URL=$(curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/bretonics/Setup/releases/latest \
| grep "zipball_url" \
| cut -d '"' -f 4)

curl -L -H "Accept: application/vnd.github.v3+json" --url ${URL} -o Setup.zip

unzip Setup.zip -d Setup
cd Setup
cd Setup/bretonics-Setup*
caffeinate bash ./install.sh

0 comments on commit 8a02704

Please sign in to comment.