Skip to content

Commit

Permalink
run whoami to get user
Browse files Browse the repository at this point in the history
  • Loading branch information
qthequartermasterman authored and Jimver committed Nov 15, 2024
1 parent 9b80ba4 commit 00eb44e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 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 src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export async function install(
// fix the permissions first
for (const file of files) {
await exec(`sudo chmod 644 ${file}`)
await exec(`sudo chown $(whoami) ${file}`)
await exec(`sudo chown \`whoami\` ${file}`)
}
const rootDirectory = '/var/log'
const uploadResult = await artifact.uploadArtifact(
Expand Down

0 comments on commit 00eb44e

Please sign in to comment.