1. camlspotter
  2. spotinstall

Commits

camlspotter  committed 17a61c8

remove destfile if it exists

  • Participants
  • Parent commits c574674
  • Branches default

Comments (0)

Files changed (1)

File spotinstall.ml

View file
  • Ignore whitespace
                 if not need_to_copy then
                   Hashset.add copied p                
                 else begin
+                  if Sys.file_exists destfile then unlink destfile;
                   let comm = match meth with
                     | `Copy -> ["/bin/cp"]
                     | `Link -> ["/bin/ln"]