Small fixes to get-kube.sh

This commit is contained in:
gmarek 2015-05-26 14:27:36 +02:00
parent 01fcb58673
commit 584496d2c4

View File

@ -49,7 +49,9 @@ function create_cluster {
cd kubernetes
./cluster/kube-up.sh
echo "Kubernetes binaries at ${PWD}/cluster/"
echo "You may want to add this directory to your PATH in \$HOME/.profile"
if [[ ":$PATH:" != *":${PWD}/cluster:"* ]]; then
echo "You may want to add this directory to your PATH in \$HOME/.profile"
fi
echo "Installation successful!"
)
@ -66,6 +68,9 @@ function get_latest_version_number {
wget -qO- ${latest_url}
elif [[ $(which curl) ]]; then
curl -Ss ${latest_url}
else
echo "Couldn't find curl or wget. Bailing out."
exit 4
fi
}
@ -100,7 +105,6 @@ fi
file=kubernetes.tar.gz
echo "Downloading kubernetes release ${release} to ${PWD}/kubernetes.tar.gz"
if [[ -n "${KUBERNETES_SKIP_CONFIRM-}" ]]; then
echo "Is this ok? [Y]/n"