Skip to content

Commit

Permalink
fix(plugin): fix linux system permission denied
Browse files Browse the repository at this point in the history
resolve liuweiGL#7
  • Loading branch information
liuweiGL committed Jul 2, 2021
1 parent d4ce4c7 commit bc9c93e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/plugin/src/lib/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ export const writeFile = async (
data: string | Uint8Array
) => {
await ensureDirExist(filePath)
return await fs.promises.writeFile(filePath, data)
await fs.promises.writeFile(filePath, data)
await fs.promises.chmod(filePath, 0o777)
}

export const exec = async (cmd: string) => {
Expand Down

0 comments on commit bc9c93e

Please sign in to comment.