From 7beb30ed18b4be29e32c4b3d13fc6d2f746f5445 Mon Sep 17 00:00:00 2001 From: sh0rez Date: Mon, 2 Mar 2020 16:43:11 +0100 Subject: [PATCH] fix: generate-help-script Binary path is different, need to adapt --- Makefile | 2 +- scripts/generate-help-txt.sh | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 36fb2e1..2ccd60b 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ static: CGO_ENABLED=0 go build -ldflags=${LDFLAGS} -o $(OUT_DIR)/$(BIN) ./cmd/$(BIN) build: - CGO_ENABLED=0 go build ./cmd/$(BIN) + CGO_ENABLED=0 go build -o $(OUT_DIR)/$(BIN) ./cmd/$(BIN) install: static @echo ">> copying $(BIN) into $(GOPATH)/bin/$(BIN)" diff --git a/scripts/generate-help-txt.sh b/scripts/generate-help-txt.sh index 6f21926..e5f9041 100755 --- a/scripts/generate-help-txt.sh +++ b/scripts/generate-help-txt.sh @@ -1,10 +1,8 @@ #!/usr/bin/env bash BINARY_NAME=jb -GOOS=$(go env GOOS) -GOARCH=$(go env GOARCH) HELP_FILE=$PWD/_output/help.txt echo "$ $BINARY_NAME -h" > $HELP_FILE -$PWD/_output/$GOOS/$GOARCH/$BINARY_NAME 2>> $HELP_FILE +$PWD/_output/$BINARY_NAME 2>> $HELP_FILE exit 0