Created
April 19, 2023 10:46
-
-
Save teju85/7c89dd41c26bced250f5028e25ed1f56 to your computer and use it in GitHub Desktop.
This script installs the latest release version of ripgrep
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
#!/bin/bash | |
DEB_URL=$(curl -s https://api.github.com/repos/BurntSushi/ripgrep/releases/latest | grep browser_download_url | grep deb | sed -e 's/.*": "//' -e 's/"//') | |
echo "Downloading latest ripgrep debian package: $DEB_URL" | |
curl -Lo ripgrep.deb $DEB_URL | |
sudo apt install -y ./ripgrep.deb | |
rm -f ripgrep.deb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment