Skip to content

Commit 01a88b2

Browse files
authored
Merge pull request #216 from weikanglim/weilim/fix-prepdocs-pwsh
Avoid setenv on blank lines
2 parents 21746d4 + 0e23f4f commit 01a88b2

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)