Add permission bit when writting the wrapper

This commit is contained in:
Gerard Ribugent 2026-01-22 15:05:34 +01:00
parent 320df87442
commit 315ab497cf
No known key found for this signature in database
GPG key ID: DCD0E41D4DDD2F80
2 changed files with 3 additions and 3 deletions

View file

@ -602,7 +602,7 @@ describe('Setup Terraform', () => {
expect(ioMv).toHaveBeenCalledWith(`file${path.sep}terraform`, `file${path.sep}terraform-bin`);
expect(fsReadFile).toHaveBeenCalledWith(wrapperPath, 'utf8');
expect(fsWriteFile).toHaveBeenCalledWith(`file${path.sep}terraform`, expect.any(String));
expect(fsWriteFile).toHaveBeenCalledWith(`file${path.sep}terraform`, expect.any(String), { mode: 0o755 });
});
test('installs wrapper on windows', async () => {
@ -660,6 +660,6 @@ describe('Setup Terraform', () => {
expect(ioMv).toHaveBeenCalledWith(`file${path.sep}terraform.exe`, `file${path.sep}terraform-bin.exe`);
expect(fsReadFile).toHaveBeenCalledWith(wrapperPath, 'utf8');
expect(fsWriteFile).toHaveBeenCalledWith(`file${path.sep}terraform`, expect.any(String));
expect(fsWriteFile).toHaveBeenCalledWith(`file${path.sep}terraform`, expect.any(String), { mode: 0o755 });
});
});