diff --git a/shell/hjson-json.sh b/shell/hjson-json.sh index 0df59a3e..49edb217 100755 --- a/shell/hjson-json.sh +++ b/shell/hjson-json.sh @@ -1,14 +1,11 @@ #!/usr/bin/env bash DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" +GOBIN="$DIR/gobin.sh" # shellcheck source=./lib/bootstrap.sh source "$DIR/lib/bootstrap.sh" -# Ensure gobin has been downloaded -"$DIR/gobin.sh" download-only >/dev/null 2>&1 - -# TODO: use outreach gobin when it supports non-go modules. Or, just rewrite this in Go :) -HJSON_CLI=$("$(get_repo_directory)/bin/gobin-go-1.15" -p github.com/hjson/hjson-go/hjson-cli) +HJSON_CLI=$("$GOBIN" -p github.com/hjson/hjson-go/hjson-cli@ca8d4fec02fe4da51776c0c1f4faac480a61eaa9) EXISTING_VERSION="0.0.1" if [[ -e $2 ]]; then