Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(create-symlink): Use octal notation for chmod values
  • Loading branch information
evocateur committed Jul 22, 2019
1 parent 3f60aca commit 03f80b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/create-symlink/create-symlink.js
Expand Up @@ -38,10 +38,10 @@ function createPosixSymlink(src, dest, _type) {
// If the src doesn't exist yet, create a shim shell script.
return fs.pathExists(src).then(exists => {
if (exists) {
return createSymbolicLink(relativeSymlink, dest, type).then(() => fs.chmod(src, "755"));
return createSymbolicLink(relativeSymlink, dest, type).then(() => fs.chmod(src, 0o755));
}

return shShim(src, dest, type).then(() => fs.chmod(dest, "755"));
return shShim(src, dest, type).then(() => fs.chmod(dest, 0o755));
});
}

Expand Down

0 comments on commit 03f80b7

Please sign in to comment.