mirror of
https://github.com/oven-sh/bun
synced 2026-02-13 20:39:05 +00:00
don't check for trailing slash, var stream
This commit is contained in:
@@ -1079,8 +1079,7 @@ pub const RunCommand = struct {
|
||||
|
||||
return true;
|
||||
} else if ((script_name_to_search.len > 1 and script_name_to_search[0] == '/') or
|
||||
(script_name_to_search.len > 2 and script_name_to_search[0] == '.' and script_name_to_search[1] == '/' and
|
||||
script_name_to_search[script_name_to_search.len - 1] != '/'))
|
||||
(script_name_to_search.len > 2 and script_name_to_search[0] == '.' and script_name_to_search[1] == '/'))
|
||||
{
|
||||
Run.boot(ctx, ctx.allocator.dupe(u8, script_name_to_search) catch unreachable) catch |err| {
|
||||
if (Output.enable_ansi_colors) {
|
||||
|
||||
Reference in New Issue
Block a user