We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd17a98 commit 78daa15Copy full SHA for 78daa15
src/cargo/cargo.rs
@@ -1536,7 +1536,7 @@ fn cmd_search(c: cargo) {
1536
fn install_to_dir(srcfile: str, destdir: str) {
1537
let newfile = path::connect(destdir, path::basename(srcfile));
1538
1539
- let status = run::run_program("cp", [srcfile, newfile]);
+ let status = run::run_program("cp", ["-r", srcfile, newfile]);
1540
if status == 0 {
1541
info(#fmt["installed: '%s'", newfile]);
1542
} else {
0 commit comments