Change to remote signed in order to setup python venv
This commit is contained in:
parent
3a39b979c5
commit
2e52eb4cc5
1 changed files with 4 additions and 0 deletions
|
|
@ -20,6 +20,10 @@ async function retryThenFail(
|
|||
retries: number = MAX_RETRIES
|
||||
): Promise<any> {
|
||||
try {
|
||||
if (retries < MAX_RETRIES && process.platform === "win32") {
|
||||
const [stdout, stderr] = await runCommand("Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser");
|
||||
}
|
||||
|
||||
return await fn();
|
||||
} catch (e: any) {
|
||||
if (retries > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue