mirror of
https://github.com/hashicorp/setup-terraform.git
synced 2026-02-04 14:28:08 +00:00
Add permission bit when writting the wrapper
This commit is contained in:
parent
320df87442
commit
315ab497cf
2 changed files with 3 additions and 3 deletions
|
|
@ -87,7 +87,7 @@ async function installWrapper (pathToCLI) {
|
|||
wrapperContent[0] = `#!${process.argv[0]}`;
|
||||
|
||||
core.debug(`Writing updated wrapper to ${target}.`);
|
||||
await fs.writeFile(target, wrapperContent.join('\n'));
|
||||
await fs.writeFile(target, wrapperContent.join('\n'), { mode: 0o755 });
|
||||
} catch (e) {
|
||||
core.error(`Unable to copy ${source} to ${target}.`);
|
||||
throw e;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue