Skip to content

Commit 9ed007e

Browse files
ericpromislowmattfarina
authored andcommitted
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 <epromislow@suse.com> (cherry picked from commit 1b75294)
1 parent de20c86 commit 9ed007e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/k8s-engine/lima.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ export default class LimaBackend extends events.EventEmitter implements K8s.Kube
739739
throw new Error(`Can't execute commands ${ singleCommand } because there's a single-quote in them.`);
740740
}
741741
try {
742-
await this.sudoExec(`/bin/sh -c '${ singleCommand }'`);
742+
await this.sudoExec(`/bin/sh -xec '${ singleCommand }'`);
743743
} catch (err) {
744744
if (typeof err === 'string' && err.toString().includes('User did not grant permission')) {
745745
throw new K8s.KubernetesError('Error Starting Kubernetes', err, true);

0 commit comments

Comments
 (0)