Skip to content

Commit

Permalink
Just run the commands with -xe.
Browse files Browse the repository at this point in the history
Output appears in the lima.log file -- no need to create and manage another one.

Signed-off-by: Eric Promislow <[email protected]>
(cherry picked from commit 1b75294)
  • Loading branch information
ericpromislow authored and mattfarina committed Feb 2, 2022
1 parent de20c86 commit 9ed007e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/k8s-engine/lima.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9ed007e

Please sign in to comment.