mirror of
https://github.com/oven-sh/bun
synced 2026-02-14 21:01:52 +00:00
rm
This commit is contained in:
@@ -1621,7 +1621,7 @@ fn handleSecurityAdvisories(manager: *PackageManager, ipc_data: []const u8, pack
|
||||
var reader = buffered.reader();
|
||||
|
||||
const first_byte = reader.readByte() catch {
|
||||
Output.pretty("\n<red>Installation cancelled.<r>\n\n", .{});
|
||||
Output.pretty("\n<red>Installation cancelled.<r>\n", .{});
|
||||
Global.exit(1);
|
||||
};
|
||||
|
||||
@@ -1656,14 +1656,14 @@ fn handleSecurityAdvisories(manager: *PackageManager, ipc_data: []const u8, pack
|
||||
};
|
||||
|
||||
if (!should_continue) {
|
||||
Output.pretty("\n<red>Installation cancelled.<r>\n\n", .{});
|
||||
Output.pretty("\n<red>Installation cancelled.<r>\n", .{});
|
||||
Global.exit(1);
|
||||
}
|
||||
|
||||
Output.pretty("\n<yellow>Continuing with installation...<r>\n\n", .{});
|
||||
} else {
|
||||
Output.pretty("\n<red>Security warnings found. Cannot prompt for confirmation (no TTY).<r>\n", .{});
|
||||
Output.pretty("<red>Installation cancelled.<r>\n\n", .{});
|
||||
Output.pretty("<red>Installation cancelled.<r>\n", .{});
|
||||
Global.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user