#!/usr/bin/env bash set -e # shellcheck disable=SC2016 havecmd -V 'aborting golang install...' go || exit $? THIS_DIR="$(realpath "$(dirname "${BASH_SOURCE[0]}")")" cd "${THIS_DIR}/" || exit $? [[ -z "$GOBIN" ]] && { # shellcheck disable=SC2016 printf 'No $GOBIN set, add something like this to your profile:\n' cat <