From ff708bfd3047625da5a09db689ad707ca57c9a23 Mon Sep 17 00:00:00 2001 From: Lukas Drbal Date: Tue, 23 May 2023 22:49:16 +0200 Subject: [PATCH] Fix getting the version for binary downloads. Fixes https://github.com/mbenabda/helm-local-chart-version/issues/18 --- install-binary.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-binary.sh b/install-binary.sh index 6a6a6d9..e9d9d17 100755 --- a/install-binary.sh +++ b/install-binary.sh @@ -47,7 +47,7 @@ getDownloadURL() { exit 1 fi - local version=$(git describe --tags --exact-match 2>/dev/null | sed s/^v//) + local version=$(git -C "$HELM_PLUGIN_DIR" describe --tags --exact-match 2>/dev/null | sed s/^v//) if [ -n "$version" ]; then DOWNLOAD_URL="https://github.com/${PROJECT_GH}/releases/download/v${version}/${PROJECT_NAME}-${version}-${OS}-${ARCH}.tar.gz" else