Skip to content

Commit

Permalink
Merge pull request ocaml#78 from avsm/fix-linux-dir-cp
Browse files Browse the repository at this point in the history
use rsync -a instead of cp -a, as its behaviour is more consistent across platforms
  • Loading branch information
samoht committed Aug 26, 2012
2 parents e1e542b + eebce5c commit 57256c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.ml
Expand Up @@ -196,7 +196,7 @@ end = struct

let copy src dst =
with_tmp_dir (fun tmp ->
let err = Run.command [ "cp"; "-a"; Filename.concat (to_string src) ""; to_string tmp ] in
let err = Run.command [ "rsync"; "-a"; Filename.concat (to_string src) "/"; to_string tmp ] in
if err <> 0 then
Globals.exit err;
match list tmp with
Expand Down

0 comments on commit 57256c4

Please sign in to comment.