Skip to content
This repository was archived by the owner on Dec 15, 2025. It is now read-only.

Commit 9830939

Browse files
committed
2.x: Using /bin/bash instead of sudo
1 parent 1f65328 commit 9830939

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/commands/shell.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default class ShellCmd extends BaseCmd {
2525

2626
async run(): Promise<void> {
2727
this.ensureActiveComposeFile()
28-
const { args} = await this.parse(ShellCmd)
28+
const { args } = await this.parse(ShellCmd)
2929
let { container } = args
3030
if (!container) {
3131
const running = this.getProjectRunningContainersCeDev()
@@ -48,6 +48,6 @@ export default class ShellCmd extends BaseCmd {
4848
}
4949
}
5050

51-
execSync(this.dockerBin + ' exec -it -u ce-dev -w /home/ce-dev ' + container + ' sudo su ce-dev || exit 0', {stdio: 'inherit'})
51+
execSync(this.dockerBin + ' exec -it -u ce-dev -w /home/ce-dev ' + container + ' /bin/bash || exit 0', {stdio: 'inherit'})
5252
}
5353
}

0 commit comments

Comments
 (0)