Skip to content

Commit

Permalink
fix: supporting paths with spaces whilst running chmod (#1367) (#1368)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChazUK committed Apr 12, 2024
1 parent 1eea2c2 commit 06ba5da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ export default class Generate extends GeneratorCommand<typeof Generate> {
)

if (process.platform !== 'win32') {
await exec(`chmod +x ${join(projectBinPath, 'run.js')}`)
await exec(`chmod +x ${join(projectBinPath, 'dev.js')}`)
await exec(`chmod +x "${join(projectBinPath, 'run.js')}"`)
await exec(`chmod +x "${join(projectBinPath, 'dev.js')}"`)
}

const updatedPackageJSON = {
Expand Down

0 comments on commit 06ba5da

Please sign in to comment.