Skip to content

Commit 03f80b7

Browse files
committed
fix(create-symlink): Use octal notation for chmod values
1 parent 3f60aca commit 03f80b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/create-symlink/create-symlink.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ function createPosixSymlink(src, dest, _type) {
3838
// If the src doesn't exist yet, create a shim shell script.
3939
return fs.pathExists(src).then(exists => {
4040
if (exists) {
41-
return createSymbolicLink(relativeSymlink, dest, type).then(() => fs.chmod(src, "755"));
41+
return createSymbolicLink(relativeSymlink, dest, type).then(() => fs.chmod(src, 0o755));
4242
}
4343

44-
return shShim(src, dest, type).then(() => fs.chmod(dest, "755"));
44+
return shShim(src, dest, type).then(() => fs.chmod(dest, 0o755));
4545
});
4646
}
4747

0 commit comments

Comments
 (0)