diff --git a/src/test/scripts/kind/create_kind.sh b/src/test/scripts/kind/create_kind.sh index 1691f417e..fea446316 100755 --- a/src/test/scripts/kind/create_kind.sh +++ b/src/test/scripts/kind/create_kind.sh @@ -10,7 +10,8 @@ if [ -z "${SKIP_DOWNLOAD_KIND}" ]; then echo "[INFO]: Downloading KinD ${KIND_VERSION}" curl -Lo ./kind "https://kind.sigs.k8s.io/dl/${KIND_VERSION}/kind-$(uname)-amd64" chmod +x ./kind - sudo mv ./kind /usr/local/bin/kind + SUDO=$(which sudo) + ${SUDO} mv ./kind /usr/local/bin/kind fi echo "[INFO]: Using config file src/test/config/kind/kind-config.yml"