Okay Wish I could say I know exactly. Will do better next time promise lol
This commit is contained in:
@@ -223,7 +223,7 @@ export async function composeExec(
|
||||
envVars?: Record<string, string>
|
||||
): Promise<string> {
|
||||
const envFlags = envVars
|
||||
? Object.entries(envVars).map(([k, v]) => `-e ${k}=${v}`).join(' ') + ' '
|
||||
? Object.entries(envVars).map(([k, v]) => `-e ${k}='${v.replace(/'/g, "'\\''")}'`).join(' ') + ' '
|
||||
: '';
|
||||
const { stdout, stderr } = await execCmd(
|
||||
`${composeCmd(project)} exec -T ${envFlags}${validateName(service, 'service')} ${command}`,
|
||||
|
||||
Reference in New Issue
Block a user