Skip to content

Conversation

jessemillar
Copy link

This PR fixes a race condition where I was unable to use a clean install of h to install Helm on a server.

…h to install helm on a server

Signed-off-by: Jesse Millar <[email protected]>
h
@@ -48,11 +48,11 @@ elif [ ! -f "$LOCAL_HELM" ]; then
GET_HELM_VERSION $KNOWN_VERSION
fi

TARGET_VERSION=$($LOCAL_HELM version --template '{{ .Server.SemVer }}')
TARGET_VERSION=$($LOCAL_HELM version --template '{{ .Server.SemVer }}' || echo $KNOWN_VERSION)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only non-whitespace change.

@@ -1,6 +1,8 @@
# Automatically run the correct version of helm every time

This script will read the version of the Helm server you are running. It will then download a new version of `helm` if needed and run your command with new `helm`. I named it `h` since most everyone appears to alias `helm` to `h` anyway.
This script will read the version of the Helm server you are running, download a new version of the `helm` CLI to your machine if needed, and run your command with a version of `helm` that matches your server.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ksjmalkdmda

@jessemillar jessemillar closed this by deleting the head repository Jul 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants