An easy way to download github releases depending on arch

This commit is contained in:
Ash Leece 2021-01-25 10:11:37 +00:00
parent 415e8fa05d
commit 88313f3f7f
1 changed files with 5 additions and 0 deletions

5
github-release.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
DOWNLOAD_URL=$(curl -s https://api.github.com/repos/cloudflare/cloudflared/releases/latest \
| grep browser_download_url \
| grep $1 \
| cut -d '"' -f 4)