Skip to content

Commit

Permalink
Merge pull request #928 from garden-io/fix-lint-error
Browse files Browse the repository at this point in the history
chore: fix linting error
  • Loading branch information
edvald authored Jul 7, 2019
2 parents ae0b4f2 + f56675d commit 93ea47e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions garden-service/src/plugins/kubernetes/local/minikube.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 93ea47e

Please sign in to comment.