diff options
author | Eric Wong <e@80x24.org> | 2021-04-19 08:52:11 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-04-19 20:15:57 +0000 |
commit | 322f2ba57b211ac34e5b6f138dfd6f9f19614812 (patch) | |
tree | c09369c3b5ce6d1d24096e69b591ad0aa899aad8 /lib/PublicInbox/LeiUp.pm | |
parent | 763c77082ecd34385ac48edc59aa6de52a472e75 (diff) | |
download | public-inbox-322f2ba57b211ac34e5b6f138dfd6f9f19614812.tar.gz |
This makes "lei q --save" as safe as "lei q" to prevent against accidental data loss when clobbering an existing output,
Diffstat (limited to 'lib/PublicInbox/LeiUp.pm')
-rw-r--r-- | lib/PublicInbox/LeiUp.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiUp.pm b/lib/PublicInbox/LeiUp.pm index 73286ea2..e4cbc825 100644 --- a/lib/PublicInbox/LeiUp.pm +++ b/lib/PublicInbox/LeiUp.pm @@ -38,7 +38,7 @@ sub lei_up { $lei->{lss} = $lss; # for LeiOverview->new my $lxs = $lei->lxs_prepare or return; $lei->ale->refresh_externals($lxs); - $lei->{opt}->{save} = 1; + $lei->{opt}->{save} = -1; $lei->_start_query; } |