fix: restore run-server quote trimming regex
This commit is contained in:
@@ -2021,7 +2021,7 @@ function Import-EnvFile {
|
|||||||
foreach ($line in $envContent) {
|
foreach ($line in $envContent) {
|
||||||
if ($line -match '^([^#][^=]*?)=(.*)$') {
|
if ($line -match '^([^#][^=]*?)=(.*)$') {
|
||||||
$key = $matches[1].Trim()
|
$key = $matches[1].Trim()
|
||||||
$value = $matches[2].Trim() -replace '^["'']| ["'']$', ''
|
$value = $matches[2].Trim() -replace '^["'']|["'']$', ''
|
||||||
|
|
||||||
# Set environment variable for the current session
|
# Set environment variable for the current session
|
||||||
[Environment]::SetEnvironmentVariable($key, $value, "Process")
|
[Environment]::SetEnvironmentVariable($key, $value, "Process")
|
||||||
|
|||||||
Reference in New Issue
Block a user