Skip to content

Commit

Permalink
Do not search for bash path [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Jan 17, 2025
1 parent 196b96b commit 35ddfc5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion __tests__/install.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ describe('Install', () => {
process.env['ini-values'] = ini_values_csv;
process.env['coverage'] = coverage_driver;
process.env['tools'] = tools;
expect(await install.run()).toBe(output);
expect(await install.run()).toContain(output);
}
);
});
4 changes: 2 additions & 2 deletions __tests__/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ describe('Utils tests', () => {
});

it('checking scriptTool', async () => {
expect(await utils.scriptTool('linux')).toBe('bash ');
expect(await utils.scriptTool('darwin')).toBe('bash ');
expect(await utils.scriptTool('linux')).toBe('/usr/bin/bash ');
expect(await utils.scriptTool('darwin')).toBe('/bin/bash ');
expect(await utils.scriptTool('win32')).toBe('pwsh ');
expect(await utils.scriptTool('openbsd')).toContain(
'Platform openbsd is not supported'
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,9 @@ export async function scriptTool(os: string): Promise<string> {
case 'win32':
return 'pwsh ';
case 'linux':
return '/usr/bin/bash ';
case 'darwin':
return 'bash ';
return '/bin/bash ';
default:
return await log('Platform ' + os + ' is not supported', os, 'error');
}
Expand Down

0 comments on commit 35ddfc5

Please sign in to comment.