aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/install/install.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/install/install.zig b/src/install/install.zig
index 40c14d30f..209f2eb96 100644
--- a/src/install/install.zig
+++ b/src/install/install.zig
@@ -6591,10 +6591,10 @@ pub const PackageManager = struct {
const bin = this.bins[package_id];
if (bin.tag != .none) {
if (!this.has_created_bin) {
+ if (!this.options.global) {
+ this.root_node_modules_folder.dir.makeDirZ(".bin") catch {};
+ }
Bin.Linker.umask = C.umask(0);
- if (!this.options.global)
- this.node_modules_folder.dir.makeDirZ(".bin") catch {};
-
this.has_created_bin = true;
}