Skip to content

Commit

Permalink
Don't use exec for mkdir
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyberbeni committed Oct 22, 2024
1 parent 83b8a71 commit 0b736f2
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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class SwiftToolInstaller {
const uuid = await getUuid(this.url, this.commit)
this.cacheKey = `installswifttool-${uuid}`
this.workingDirectory = `${os.homedir()}/install-swift-tool-${uuid}`
await exec('mkdir', ['-p', this.workingDirectory])
fs.mkdirSync(this.workingDirectory, { recursive: true })
this.productDirectory = await exec('swift', ['build', '--package-path', this.workingDirectory, '--configuration', 'release', '--show-bin-path'])
})
}
Expand Down

0 comments on commit 0b736f2

Please sign in to comment.