Skip to content

Commit

Permalink
allow safebox binary to be executed (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
adikari committed Dec 17, 2022
1 parent cb3c518 commit a8ea13f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion npm/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ const install = () => {
const binary = path.join(tmpdir, binaryName);

const copyBinary = () => {
fs.copyFileSync(binary, path.join(bin, binaryName));
const dest = path.join(bin, binaryName);
fs.copyFileSync(binary, dest);
fs.chmodSync(dest, 0o744)
}

if (fs.existsSync(binary)) {
Expand Down
2 changes: 1 addition & 1 deletion npm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@adikari/safebox",
"version": "1.2.4",
"version": "1.2.5",
"description": "A Fast and Flexible secret manager built with love by adikari in Go",
"main": "index.js",
"bin": "./run.js",
Expand Down

0 comments on commit a8ea13f

Please sign in to comment.