(params: ResolverParameters, containerProperties: ContainerProperties)
| 761 | } |
| 762 | |
| 763 | async function patchEtcProfile(params: ResolverParameters, containerProperties: ContainerProperties) { |
| 764 | const markerFile = path.posix.join(getSystemVarFolder(params), `.patchEtcProfileMarker`); |
| 765 | if (params.allowSystemConfigChange && containerProperties.launchRootShellServer && !(await isFile(containerProperties.shellServer, markerFile))) { |
| 766 | const rootShellServer = await containerProperties.launchRootShellServer(); |
| 767 | if (await createFile(rootShellServer, markerFile)) { |
| 768 | await rootShellServer.exec(`sed -i -E 's/((^|\\s)PATH=)([^\\$]*)$/\\1\${PATH:-\\3}/g' /etc/profile || true`); |
| 769 | } |
| 770 | } |
| 771 | } |
| 772 | |
| 773 | async function probeUserEnv(params: { defaultUserEnvProbe: UserEnvProbe; allowSystemConfigChange: boolean; output: Log; containerSessionDataFolder?: string }, containerProperties: { shell: string; remoteExec: ExecFunction; installFolder?: string; env?: NodeJS.ProcessEnv; shellServer?: ShellServer; launchRootShellServer?: (() => Promise<ShellServer>); user?: string }, config?: CommonMergedDevContainerConfig) { |
| 774 | let userEnvProbe = getUserEnvProb(config, params); |
no test coverage detected