mirror of https://github.com/helm/helm
scripts: do not use optional 'which' command in get-helm installation (#8048)
When installing Helm, the following warning gets printed on the console: Downloading https://get.helm.sh/helm-v2.16.6-linux-amd64.tar.gz Preparing to install helm and tiller into /usr/local/bin helm installed into /usr/local/bin/helm tiller installed into /usr/local/bin/tiller main: line 178: which: command not found Run 'helm init' to configure helm. The 'which' command is optional, and not always installed on all environments (like a Fedora container). Instead, use 'command -v' to detect if the executable is in the $PATH. Signed-off-by: Niels de Vos <ndevos@redhat.com>pull/8112/head
parent
59eed4e81f
commit
bf12ae3934
Loading…
Reference in new issue