Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
RiskyMH authored Feb 5, 2025
1 parent b898442 commit c225c12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shell/interpreter.zig
Original file line number Diff line number Diff line change
Expand Up @@ -4832,13 +4832,13 @@ pub const Interpreter = struct {
}

break :blk which(path_buf, spawn_args.PATH, spawn_args.cwd, first_arg_real) orelse {
this.writeFailingError("bun: command not found: {s}\n", .{first_arg});

if (bun.strings.eqlComptime(first_arg_real, "bunx")) blk2: {
if (bun.is_standalone == true) spawn_args.env_array.append(arena_allocator, "BUN_SKIP_STANDALONE_MODULE_GRAPH=1") catch break :blk2;
this.args.insert(1, "x") catch break :blk2;
break :blk bun.selfExePath() catch break :blk2;
}

this.writeFailingError("bun: command not found: {s}\n", .{first_arg});
return;
};
};
Expand Down

0 comments on commit c225c12

Please sign in to comment.