Skip to content

Commit

Permalink
sign_tool.dart: reread PSModulePath
Browse files Browse the repository at this point in the history
Reread PSModulePath to fix YehudaKremer#181
  • Loading branch information
caiohamamura authored May 25, 2023
1 parent ab1d4b2 commit 6b940d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/sign_tool.dart
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class SignTool {
await Process.run('powershell.exe', [
'-NoProfile',
'-NonInteractive',
"dir Cert:\\CurrentUser\\Root | Where-Object { \$_.Subject -eq '${_config.publisher}'}"
"\$env:PSModulePath = [Environment]::GetEnvironmentVariable('PSModulePath', 'Machine');dir Cert:\\CurrentUser\\Root | Where-Object { \$_.Subject -eq '${_config.publisher}'}"
])
..exitOnError();

Expand Down

0 comments on commit 6b940d8

Please sign in to comment.