Skip to content

Commit

Permalink
fix(hjson): support newer gobin (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredallard authored Sep 9, 2021
1 parent f4f929a commit edc289b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions shell/hjson-json.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit edc289b

Please sign in to comment.