Skip to content

Commit

Permalink
fixed permissions the hard way
Browse files Browse the repository at this point in the history
  • Loading branch information
kohlerdominik committed Feb 27, 2024
1 parent 72587d7 commit a020c60
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/dockerRun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ const command = fileMap.pushRunnerPath(
export async function runContainer(): Promise<void> {
for (const item of fileMap.items.values()) {
try {
fs.chmodSync(item.runner.path, 0o777)
fs.chmodSync(item.runner.path, 0o666)
fs.chownSync(item.runner.path, 0, 0)
} catch (e) {
// ignore errors if the file does not exist
}
Expand Down

0 comments on commit a020c60

Please sign in to comment.