Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Race Condition Fix #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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

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