Last active
April 12, 2019 03:50
-
-
Save patrickmslatteryvt/3b922bcfe286105e794c863b1071a3d3 to your computer and use it in GitHub Desktop.
Install/Update to latest version of powerline-go
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
# Install/Update to latest version of powerline-go: | |
# https://github.com/justjanne/powerline-go/releases/download/v1.12.1/powerline-go-linux-amd64 | |
echo "[+] Install powerline-go" | |
jq || sudo dnf install -y jq || sudo apt-get install -y jq | |
mkdir -p ~/go/bin/ | |
GITHUB_USER=justjanne | |
GITHUB_REPO=powerline-go | |
POWERLINE_GO_VERSION=$(curl -s https://api.github.com/repos/${GITHUB_USER}/${GITHUB_REPO}/releases/latest | jq .tag_name | tr -d '"') | |
echo "powerline-go version: ${POWERLINE_GO_VERSION}" | |
curl --fail --retry 3 --location "https://github.com/${GITHUB_USER}/${GITHUB_REPO}/releases/download/${POWERLINE_GO_VERSION}/${GITHUB_REPO}-linux-amd64" --output ~/go/bin/${GITHUB_REPO} -# | |
chmod +x ~/go/bin/${GITHUB_REPO} | |
~/go/bin/${GITHUB_REPO} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment