Skip to content

Commit 0120fb3

Browse files
committed
fix(install): suppress command echo in Windows native cmd shim
Add `@` prefix to the execution line in `native_cmd_shim` to prevent cmd.exe from echoing the full command path before running it. Without this, bun commands on Windows print the raw shim path in output.
1 parent 94aecfa commit 0120fb3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/vite_install/src/shim.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ pub fn native_cmd_shim(relative_file: &str) -> String {
5656
formatdoc! {
5757
r#"
5858
@SETLOCAL
59-
"%~dp0\{relative_file}" %*
59+
@"%~dp0\{relative_file}" %*
6060
"#,
6161
relative_file = relative_file.replace('/', "\\")
6262
}

0 commit comments

Comments
 (0)