diff options
author | 2022-10-20 18:44:50 -0700 | |
---|---|---|
committer | 2022-10-20 18:44:50 -0700 | |
commit | 0a2c101c28461e5aa7b20dca7cba50c52716b8e3 (patch) | |
tree | a7336ea05f752b2a2d16a6405b92e6c21bdf714d /src | |
parent | c526a6bce816c2dab06541b17d4e7f1f0750c0ce (diff) | |
download | bun-0a2c101c28461e5aa7b20dca7cba50c52716b8e3.tar.gz bun-0a2c101c28461e5aa7b20dca7cba50c52716b8e3.tar.zst bun-0a2c101c28461e5aa7b20dca7cba50c52716b8e3.zip |
Update install script to use secure flags
Diffstat (limited to 'src')
-rw-r--r-- | src/cli/upgrade_command.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cli/upgrade_command.zig b/src/cli/upgrade_command.zig index 015563bad..05d8a9cd6 100644 --- a/src/cli/upgrade_command.zig +++ b/src/cli/upgrade_command.zig @@ -374,7 +374,7 @@ pub const UpgradeCommand = struct { @setCold(true); _exec(ctx) catch |err| { - Output.prettyErrorln("<r>bun upgrade failed with error: <red><b>{s}<r>\n\n<cyan>Please upgrade manually<r>:\n <b>curl https://bun.sh/install | bash<r>\n\n", .{@errorName(err)}); + Output.prettyErrorln("<r>bun upgrade failed with error: <red><b>{s}<r>\n\n<cyan>Please upgrade manually<r>:\n <b>curl -fsSL https://bun.sh/install | bash<r>\n\n", .{@errorName(err)}); Global.exit(1); }; } @@ -678,7 +678,7 @@ pub const UpgradeCommand = struct { if (env_loader.map.get("BUN_DRY_RUN") == null) { C.moveFileZ(save_dir.fd, exe, target_dir.fd, target_filename) catch |err| { save_dir_.deleteTree(version_name) catch {}; - Output.prettyErrorln("<r><red>error:<r> Failed to move new version of bun due to {s}. You could try the install script instead:\n curl -L https://bun.sh/install | bash", .{@errorName(err)}); + Output.prettyErrorln("<r><red>error:<r> Failed to move new version of bun due to {s}. You could try the install script instead:\n curl -fsSL https://bun.sh/install | bash", .{@errorName(err)}); Global.exit(1); }; } |