From f56675d331e062572c2d6691dd1bbb4bb7febc4b Mon Sep 17 00:00:00 2001 From: Jon Edvald Date: Sun, 7 Jul 2019 15:46:24 +0200 Subject: [PATCH] chore: fix linting error --- garden-service/src/plugins/kubernetes/local/minikube.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/garden-service/src/plugins/kubernetes/local/minikube.ts b/garden-service/src/plugins/kubernetes/local/minikube.ts index 674ca6ee9c..fdb5008677 100644 --- a/garden-service/src/plugins/kubernetes/local/minikube.ts +++ b/garden-service/src/plugins/kubernetes/local/minikube.ts @@ -13,15 +13,17 @@ import * as execa from "execa" * TODO: it would be better to explicitly provide those to docker instead of using process.env */ export async function setMinikubeDockerEnv() { - let minikubeEnv + let minikubeEnv: string + try { minikubeEnv = await execa.stdout("minikube", ["docker-env", "--shell=bash"]) } catch (err) { if (err.contains("driver does not support")) { - return; + return } - throw err; + throw err } + for (const line of minikubeEnv.split("\n")) { const matched = line.match(/^export (\w+)="(.+)"$/) if (matched) {