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"
1717if (Test-Path $envFilePath ) {
1818 Get-Content $envFilePath | ForEach-Object {
1919 if ($_ -match " ^(.*?)=(.*)$" ) {
20- [System.Environment ]::SetEnvironmentVariable($matches [1 ], $matches [2 ])
20+ [System.Environment ]::SetEnvironmentVariable($matches [1 ], $matches [2 ].Trim( ' " ' ) )
2121 Write-Output " Loaded environment variable: $ ( $matches [1 ]) "
2222 }
2323 }
@@ -54,11 +54,12 @@ Write-Output 'Running "pnpm generate"'
5454# we do this by setting the AZURE_CLIENT_ID to an empty string before running the command
5555$env: AZURE_CLIENT_ID = " "
5656Try {
57- pnpm generate
57+ npm install pnpm
58+ pnpm install
5859 Write-Output " Command 'pnpm generate' completed successfully"
5960} Catch {
6061 Write-Error " Error: 'pnpm generate' failed"
6162 exit 1
6263}
6364
64- Write-Output " Script completed successfully"
65+ Write-Output " Script completed successfully"
You can’t perform that action at this time.
0 commit comments