X-Git-Url: http://www.git.cypherpunks.ru/?p=goredo.git;a=blobdiff_plain;f=run.go;h=512418b6e448206ba58c1bd7f3e366197c67bd78;hp=824f6c255ee45a0a165577c2d56f706d9627ebcd;hb=8d5585b7ef0cd458d9e005abdf5ce7fb2f0c5e47;hpb=679764f6a0162617a3e218384a36baf44179dd4b diff --git a/run.go b/run.go index 824f6c2..512418b 100644 --- a/run.go +++ b/run.go @@ -507,6 +507,7 @@ func runScript(tgtOrig string, errs chan error, traced bool) error { // Do we need to ifcreate it, of ifchange with renaming? if fd == nil { + os.Remove(path.Join(cwdOrig, tgt)) err = ifcreate(fdDep, tgt) if err != nil { goto Finish