Skip to content

Commit

Permalink
remove world permission for binary
Browse files Browse the repository at this point in the history
  • Loading branch information
vallyian committed Mar 21, 2023
1 parent ea39780 commit 1259d5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function install() {
const moveBinary = () => fs.promises.rename(tmpBinFile, env.binary).then(() => fs.existsSync(env.binary)
|| Promise.reject(`binary "${env.binary} not available"`));
const makeBinaryExecutable = () => fs.promises.access(env.binary, fs.constants.X_OK).catch(({ code }) => code === "EACCES"
? fs.promises.chmod(env.binary, 0o775)
? fs.promises.chmod(env.binary, 0o770)
: Promise.reject(`binary "${env.binary} not executable"`));
const storeBinaryVersion = () => fs.promises.writeFile(
"package.json",
Expand Down

0 comments on commit 1259d5e

Please sign in to comment.