Skip to content

Commit 539eb41

Browse files
with perms
1 parent 25b1b6d commit 539eb41

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

dist/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28323,6 +28323,7 @@ function main() {
2832328323
${tool}
2832428324
*******
2832528325
`);
28326+
yield (0, promises_1.chmod)(tool, '755');
2832628327
const binDir = node_path_1.default.join(process.env.HOME, 'bin');
2832728328
if (!(0, fs_1.existsSync)(binDir)) {
2832828329
core.info(`Binary dir not found. Creating one at ${binDir}`);

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { exec } from 'node:child_process'
44
import { promisify } from 'node:util'
55
import os from 'node:os'
66
import path from 'node:path'
7-
import { mkdir, symlink } from 'fs/promises'
7+
import { mkdir, symlink, chmod } from 'fs/promises'
88
import { existsSync } from 'fs'
99

1010
const doExec = promisify(exec)
@@ -96,6 +96,8 @@ async function main() {
9696
*******
9797
`)
9898

99+
await chmod(tool, '755')
100+
99101
const binDir = path.join(process.env.HOME!, 'bin')
100102
if (!existsSync(binDir)) {
101103
core.info(`Binary dir not found. Creating one at ${binDir}`)

0 commit comments

Comments
 (0)