Skip to content

Commit 0e23f4f

Browse files
committed
Avoid setenv on blank lines
1 parent 21746d4 commit 0e23f4f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/prepdocs.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ Write-Host ""
55
$output = azd env get-values
66

77
foreach ($line in $output) {
8+
if (!$line.Contains('=')) {
9+
continue
10+
}
11+
812
$name, $value = $line.Split("=")
913
$value = $value -replace '^\"|\"$'
1014
[Environment]::SetEnvironmentVariable($name, $value)

0 commit comments

Comments
 (0)