]> Cypherpunks.ru repositories - goredo.git/blobdiff - run.go
Do not remove .lock
[goredo.git] / run.go
diff --git a/run.go b/run.go
index 5e67c41c37ac0107e3a816d7b48a5258f7db4e7b..01da3b26b4cfe1010c57fa6397415d4766fad007 100644 (file)
--- a/run.go
+++ b/run.go
@@ -126,7 +126,7 @@ func (e RunError) Error() string {
 }
 
 func mkdirs(pth string) error {
-       if _, err := os.Stat(pth); err == nil {
+       if FileExists(pth) {
                return nil
        }
        return os.MkdirAll(pth, os.FileMode(0777))
@@ -577,7 +577,6 @@ func runScript(tgtOrig string, errs chan error, traced bool) error {
                        os.Remove(fdDep.Name())
                        os.Remove(fdStdout.Name())
                        os.Remove(tmpPath)
-                       os.Remove(fdLock.Name())
                        if FdStatus != nil {
                                if _, err = FdStatus.Write([]byte{StatusDone}); err != nil {
                                        log.Fatalln(err)