diff options
author | 2022-02-24 19:16:58 -0800 | |
---|---|---|
committer | 2022-02-24 19:16:58 -0800 | |
commit | 08c4f8b10387731979fa1cc67b593152f130f18c (patch) | |
tree | 130859b32345b3b4bd33219f2be1ac29ccdba0df | |
parent | a9b32275f15e9f1d557c8fe8422be2f1570f831e (diff) | |
download | bun-08c4f8b10387731979fa1cc67b593152f130f18c.tar.gz bun-08c4f8b10387731979fa1cc67b593152f130f18c.tar.zst bun-08c4f8b10387731979fa1cc67b593152f130f18c.zip |
[bun install] Print correct bin name
-rw-r--r-- | src/install/bin.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/install/bin.zig b/src/install/bin.zig index fa44a87bd..f3f64f0d7 100644 --- a/src/install/bin.zig +++ b/src/install/bin.zig @@ -190,7 +190,7 @@ pub const Bin = extern struct { if (this.i > 0) return null; this.i += 1; this.done = true; - const base = std.fs.path.basename(this.bin.value.file.slice(this.string_buffer)); + const base = std.fs.path.basename(this.package_name.slice(this.string_buffer)); if (strings.hasPrefix(base, "./")) return base[2..]; return base; }, |