MCPcopy Index your code
hub / github.com/devcontainers/cli / getUserShell

Function getUserShell

src/spec-common/injectHeadless.ts:296–298  ·  view source on GitHub ↗
(containerEnv: NodeJS.ProcessEnv, passwdUser: PasswdUser | undefined)

Source from the content-addressed store, hash-verified

294}
295
296async function getUserShell(containerEnv: NodeJS.ProcessEnv, passwdUser: PasswdUser | undefined) {
297 return containerEnv.SHELL || (passwdUser && passwdUser.shell) || '/bin/sh';
298}
299
300export async function getUserFromPasswdDB(shellServer: ShellServer, userNameOrId: string) {
301 const { stdout } = await shellServer.exec(getEntPasswdShellCommand(userNameOrId), { logOutput: false });

Callers 1

getContainerPropertiesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected