mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
minikube: fix ShellCheck errors
Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
60a8e879e5
commit
ed90535c23
@ -31,10 +31,9 @@ function copy_image_to_cluster() {
|
|||||||
# install minikube
|
# install minikube
|
||||||
function install_minikube() {
|
function install_minikube() {
|
||||||
if type minikube >/dev/null 2>&1; then
|
if type minikube >/dev/null 2>&1; then
|
||||||
local version
|
local mk_version version
|
||||||
version=$(minikube version)
|
read -ra mk_version <<<"$(minikube version)"
|
||||||
read -ra version <<<"${version}"
|
version=${mk_version[2]}
|
||||||
version=${version[2]}
|
|
||||||
if [[ "${version}" != "${MINIKUBE_VERSION}" ]]; then
|
if [[ "${version}" != "${MINIKUBE_VERSION}" ]]; then
|
||||||
echo "installed minikube version ${version} is not matching requested version ${MINIKUBE_VERSION}"
|
echo "installed minikube version ${version} is not matching requested version ${MINIKUBE_VERSION}"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user