Fix second run in the same job

Refactor install.ts and its tests
This commit is contained in:
Shivam Mathur
2022-01-30 08:45:11 +05:30
parent 0022878947
commit 5acd006232
5 changed files with 82 additions and 150 deletions

View File

@ -401,10 +401,10 @@ export async function scriptExtension(os: string): Promise<string> {
export async function scriptTool(os: string): Promise<string> {
switch (os) {
case 'win32':
return 'pwsh';
return 'pwsh ';
case 'linux':
case 'darwin':
return 'bash';
return 'bash ';
default:
return await log('Platform ' + os + ' is not supported', os, 'error');
}