]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LeiQuery.pm
lei q: fix --import-before default and FIFO output
[public-inbox.git] / lib / PublicInbox / LeiQuery.pm
index 493a83825d2c4e64a1f350ad6ea329b3fc32fb1d..623b92cdb78c3893de9c9cfcc7475261a5a160e0 100644 (file)
@@ -52,7 +52,7 @@ sub lei_q {
        my $sto = $self->_lei_store(1);
        my $lse = $sto->search;
        if (($opt->{'import-remote'} //= 1) |
-                       ($opt->{'import-before'} //= 1)) {
+                       (($opt->{'import-before'} //= \1) ? 1 : 0)) {
                $sto->write_prepare($self);
        }
        if ($opt->{'local'} //= scalar(@only) ? 0 : 1) {