Commit 3fbc66e3 authored by Robert Ricci's avatar Robert Ricci

close() files open()ed in DoneIfEdited()

parent 70fdb42c
......@@ -248,8 +248,10 @@ sub DoneIfEdited($) {
if (!$filename) { PhaseFail("Bad filename passed to DoneIfEdited"); }
open(FH,$filename) or return;
if (grep /$MAGIC_STRING/, <FH>) {
close(FH);
PhaseSkip("File $filename has already been edited\n");
}
close(FH);
}
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment