about summary refs log tree commit homepage
path: root/script
diff options
context:
space:
mode:
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-03-30 20:31:48 +0000
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-03-30 20:34:41 +0000
commit782b745180997e17fed3c7c2369a623ed2e05cfe (patch)
tree753ead6429c2fc3aca7e8e75240a1c1da1aa11aa /script
parent7898737ebf37436a50805bacbc116b047de7e424 (diff)
downloadpublic-inbox-782b745180997e17fed3c7c2369a623ed2e05cfe.tar.gz
This bug was hidden due to timing problems with eatmydata or
running with tmpfs for TMPDIR.
Diffstat (limited to 'script')
-rwxr-xr-xscript/public-inbox-convert3
1 files changed, 1 insertions, 2 deletions
diff --git a/script/public-inbox-convert b/script/public-inbox-convert
index 2b0a385e..e6fb4f5f 100755
--- a/script/public-inbox-convert
+++ b/script/public-inbox-convert
@@ -91,9 +91,8 @@ while (<$rd>) {
                         $from = $1;
                         # no next
                 }
-        } elsif ($_ eq "done\n") {
-                last;
         }
+        last if $_ eq "done\n";
         $w->print($_) or $im->wfail;
 }
 $w = $r = undef;