Last active
November 25, 2023 20:27
-
-
Save thejimnicholson/e79bca2630eb54a7b6a14dd1137fbe9d to your computer and use it in GitHub Desktop.
Download latest released .deb from github releases
This file contains 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
#!/usr/bin/env bash | |
PROJECT='eugeny/tabby' | |
API_LATEST=https://api.github.com/repos/$PROJECT/releases/latest | |
TARGET=$(curl -s $API_LATEST | jq ' .assets[].browser_download_url' | grep \.linux-x64\.deb | tr -d '"') | |
PACKAGE=$(basename $TARGET) | |
curl -s -o $PACKAGE --max-redirs 5 -L $TARGET |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment