Commit 6df4cd5e authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Fix silly logic bug.

Also be sure to remove temp file.
parent 67b73eb9
......@@ -473,10 +473,11 @@ sub genelist($$$)
if (-e "$ELISTS/$listname" &&
system("cmp -s $tempfile $ELISTS/$listname") == 0) {
print "$listname has not changed. Skipping.\n";
unlink("$tempfile");
return;
}
system("/bin/mv -f $tempfile $ELISTS/$listname") == 0 ||
system("/bin/cp -pf $tempfile $ELISTS/$listname") == 0 ||
fatal("Could not move $tempfile to $ELISTS/$listname: $!");
#
......
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