File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
infra/hooks/postprovision Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ $envFilePath = Join-Path -Path $rootDir -ChildPath ".env"
17
17
if (Test-Path $envFilePath ) {
18
18
Get-Content $envFilePath | ForEach-Object {
19
19
if ($_ -match " ^(.*?)=(.*)$" ) {
20
- [System.Environment ]::SetEnvironmentVariable($matches [1 ], $matches [2 ])
20
+ [System.Environment ]::SetEnvironmentVariable($matches [1 ], $matches [2 ].Trim( ' " ' ) )
21
21
Write-Output " Loaded environment variable: $ ( $matches [1 ]) "
22
22
}
23
23
}
@@ -54,11 +54,12 @@ Write-Output 'Running "pnpm generate"'
54
54
# we do this by setting the AZURE_CLIENT_ID to an empty string before running the command
55
55
$env: AZURE_CLIENT_ID = " "
56
56
Try {
57
- pnpm generate
57
+ npm install pnpm
58
+ pnpm install
58
59
Write-Output " Command 'pnpm generate' completed successfully"
59
60
} Catch {
60
61
Write-Error " Error: 'pnpm generate' failed"
61
62
exit 1
62
63
}
63
64
64
- Write-Output " Script completed successfully"
65
+ Write-Output " Script completed successfully"
You can’t perform that action at this time.
0 commit comments