Created
September 2, 2019 08:10
-
-
Save tanelmae/844940d3f4336e307c9f18df0fb4e35a to your computer and use it in GitHub Desktop.
Simple setup to pin tusk version for a project
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
| #!/usr/bin/env bash | |
| set -e | |
| if [ -z "${GOPATH}" ]; then | |
| echo "GOPATH not set" | |
| exit 1 | |
| fi | |
| TUSK_VERSION=${1:-latest} | |
| echo "Will install tusk version ${TUSK_VERSION} to ${GOPATH}/bin" | |
| curl -sL https://git.io/tusk | bash -s -- -b ${GOPATH}/bin v${1:-latest} | |
| ${GOPATH}/bin/tusk --install-completion bash | |
| # Pin tusk with tusk | |
| # update-tusk: | |
| # usage: Installs pinned tusk version | |
| # run: | |
| # - command: "./get-tusk.sh 0.4.7" | |
| # |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment