trim envs

This commit is contained in:
DubbleClick
2025-06-06 09:35:05 +07:00
parent 57b527c886
commit 861010af0e

View File

@@ -72,10 +72,10 @@ class UnixShell
public function setEnv(array $env): UnixShell public function setEnv(array $env): UnixShell
{ {
foreach ($env as $k => $v) { foreach ($env as $k => $v) {
if ($v === '') { if (trim($v) === '') {
continue; continue;
} }
$this->env[$k] = $v; $this->env[$k] = trim($v);
} }
return $this; return $this;
} }