mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-08-20 04:24:44 +07:00
Fix second run in the same job
Refactor install.ts and its tests
This commit is contained in:
@ -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');
|
||||
}
|
||||
|
Reference in New Issue
Block a user