fix: envs with special chars during build
This commit is contained in:
parent
8fa59f5ade
commit
e83164e537
1 changed files with 3 additions and 0 deletions
|
|
@ -2287,7 +2287,10 @@ private function start_by_compose_file()
|
|||
private function generate_build_env_variables()
|
||||
{
|
||||
$variables = collect($this->nixpacks_plan_json->get('variables'));
|
||||
|
||||
$this->build_args = $variables->map(function ($value, $key) {
|
||||
$value = escapeshellarg($value);
|
||||
|
||||
return "--build-arg {$key}={$value}";
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue