]> Cypherpunks.ru repositories - goredo.git/blobdiff - run.go
Remove closing of already closed file
[goredo.git] / run.go
diff --git a/run.go b/run.go
index 1dc937dedb6313a469420fafe6137194ebda262e..f6a9042d192dd9316239c99660b3db42a0b61f6d 100644 (file)
--- a/run.go
+++ b/run.go
@@ -1,5 +1,5 @@
 /*
-goredo -- redo implementation on pure Go
+goredo -- djb's redo implementation on pure Go
 Copyright (C) 2020-2021 Sergey Matveev <stargrave@stargrave.org>
 
 This program is free software: you can redistribute it and/or modify
@@ -473,7 +473,6 @@ func runScript(tgtOrig string, errs chan error, traced bool) error {
                                if err == nil && !inode.Equals(inodePrev) {
                                        runErr.Err = errors.New("$1 was explicitly touched")
                                        errs <- runErr
-                                       fd.Close()
                                        return
                                }
                        }