Skip to content

Commit 2ee0ee7

Browse files
committed
Fix env processing in exec command arguments
1 parent 9ab8612 commit 2ee0ee7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build-packages/magento-scripts/lib/tasks/docker/containers/container-api.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,11 @@ const execCommand = (options) => {
125125
: Object.entries(env)
126126
.map(
127127
([key, value]) =>
128-
`--env ${key}=${value.replaceAll(' ', '\\ ')}`
128+
`--env=${key}=${
129+
typeof value === 'string'
130+
? value.replaceAll(' ', '\\ ')
131+
: value
132+
}`
129133
)
130134
.join(' ')
131135
const ttyArg = tty ? '--tty' : ''

0 commit comments

Comments
 (0)