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

scripts/install_plugin.sh: 14: [: Linux: unexpected operator #7

Closed
techadrian opened this issue Jul 17, 2018 · 2 comments
Closed

scripts/install_plugin.sh: 14: [: Linux: unexpected operator #7

techadrian opened this issue Jul 17, 2018 · 2 comments

Comments

@techadrian
Copy link

Hi,

Trying to deploy on Centos 7 gives :

helm plugin install https://github.com/chartmuseum/helm-push

Downloading and installing helm-push v0.4.0 ...
scripts/install_plugin.sh: 14: [: Linux: unexpected operator
scripts/install_plugin.sh: 16: [: Linux: unexpected operator
https://github.com/chartmuseum/helm-push/releases/download/v0.4.0/helm-push_0.4.0_windows_amd64.tar.gz

Checked the scripts/install_plugin.sh script and saw that you are using == to compare strings.
Using = instead of == fixes the issue.

Based on my experience, == will not work on every shell, and = should be the way to go.

Keep up the good work!

@jdolitsky
Copy link
Contributor

@techadrian thanks! I've made your suggested change on master. Can you try the "helm plugin install" again and verify it works on your end?

@techadrian
Copy link
Author

@jdolitsky : Works like a charm. Thanks.

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

No branches or pull requests

2 participants