Skip to content

Instantly share code, notes, and snippets.

@tanelmae
Created September 2, 2019 08:10
Show Gist options
  • Select an option

  • Save tanelmae/844940d3f4336e307c9f18df0fb4e35a to your computer and use it in GitHub Desktop.

Select an option

Save tanelmae/844940d3f4336e307c9f18df0fb4e35a to your computer and use it in GitHub Desktop.
Simple setup to pin tusk version for a project
#!/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