From ed90535c237064db1bf5bd53fa551de49fa7342e Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Sat, 18 Apr 2020 16:47:56 +0200 Subject: [PATCH] minikube: fix ShellCheck errors Signed-off-by: Niels de Vos --- scripts/minikube.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/minikube.sh b/scripts/minikube.sh index 572dc445a..bdc362310 100755 --- a/scripts/minikube.sh +++ b/scripts/minikube.sh @@ -31,10 +31,9 @@ function copy_image_to_cluster() { # install minikube function install_minikube() { if type minikube >/dev/null 2>&1; then - local version - version=$(minikube version) - read -ra version <<<"${version}" - version=${version[2]} + local mk_version version + read -ra mk_version <<<"$(minikube version)" + version=${mk_version[2]} if [[ "${version}" != "${MINIKUBE_VERSION}" ]]; then echo "installed minikube version ${version} is not matching requested version ${MINIKUBE_VERSION}" exit 1