From 20988370ccec57065c90f830a93d75917539ebe7 Mon Sep 17 00:00:00 2001 From: Matthias Loibl Date: Wed, 8 Jan 2020 11:39:44 +0100 Subject: [PATCH] Fix generate README script --- README.md | 6 ++++-- scripts/generate-help-txt.sh | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 791985f..57f5462 100644 --- a/README.md +++ b/README.md @@ -87,9 +87,11 @@ usage: jb [] [ ...] A jsonnet package manager Flags: - -h, --help Show context-sensitive help (also try --help-long and --help-man). + -h, --help Show context-sensitive help (also try --help-long and + --help-man). + --version Show application version. --jsonnetpkg-home="vendor" - The directory used to cache packages in. + The directory used to cache packages in. Commands: help [...] diff --git a/scripts/generate-help-txt.sh b/scripts/generate-help-txt.sh index ddb934d..6f21926 100755 --- a/scripts/generate-help-txt.sh +++ b/scripts/generate-help-txt.sh @@ -1,8 +1,10 @@ #!/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 -PATH=$PATH:$PWD/_output/linux/amd64 $BINARY_NAME -h 2>> $HELP_FILE +$PWD/_output/$GOOS/$GOARCH/$BINARY_NAME 2>> $HELP_FILE exit 0