Created
February 19, 2026 16:42
-
-
Save JanMalch/ef879d0ebd16e8353de946d7525e34ce to your computer and use it in GitHub Desktop.
Bash script to download GitHub release artifacts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| platform="roar-arm64-darwin" | |
| url=$(curl -s https://api.github.com/repos/JanMalch/roar/releases/latest | grep "browser_download_url.*${platform}" | cut -d : -f 2,3 | tr -d '"' | xargs echo -n) | |
| curl -sS -L -o "$(dirname "$0")/roar" "$url" | |
| chmod +x "$(dirname "$0")/roar" | |
| # for OS X (optional), see https://superuser.com/a/28400 | |
| # xattr -d com.apple.quarantine "$(dirname "$0")/roar" | |
| roar -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment