From 9ed007eba7b9c6faaa88246ef7ed5ddb72d5c383 Mon Sep 17 00:00:00 2001 From: Eric Promislow Date: Tue, 1 Feb 2022 14:30:01 -0800 Subject: [PATCH] Just run the commands with -xe. Output appears in the lima.log file -- no need to create and manage another one. Signed-off-by: Eric Promislow (cherry picked from commit 1b752940c96b8d79de153480faa8e43e640ac414) --- src/k8s-engine/lima.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/k8s-engine/lima.ts b/src/k8s-engine/lima.ts index 40585b0921c..800abf6bcfb 100644 --- a/src/k8s-engine/lima.ts +++ b/src/k8s-engine/lima.ts @@ -739,7 +739,7 @@ export default class LimaBackend extends events.EventEmitter implements K8s.Kube throw new Error(`Can't execute commands ${ singleCommand } because there's a single-quote in them.`); } try { - await this.sudoExec(`/bin/sh -c '${ singleCommand }'`); + await this.sudoExec(`/bin/sh -xec '${ singleCommand }'`); } catch (err) { if (typeof err === 'string' && err.toString().includes('User did not grant permission')) { throw new K8s.KubernetesError('Error Starting Kubernetes', err, true);