Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit b51c91c

Browse files
committed
Don't fail if bin directory exists.
1 parent 9f3463d commit b51c91c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

createBinDir.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ const arch = process.arch;
99
const binDir = platform === "darwin" ? platform + arch : platform;
1010
const binPath = path.join(__dirname, "..", binDir);
1111

12-
fs.mkdirSync(binPath);
12+
if (fs.existsSync(binPath)) { return }
13+
fs.mkdirSync(binPath)

0 commit comments

Comments
 (0)