useful-files/github-release.sh

5 lines
165 B
Bash
Executable File

#!/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)