From 322f2ba57b211ac34e5b6f138dfd6f9f19614812 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 19 Apr 2021 08:52:11 +0000 Subject: lei q: implement import-before default for --save This makes "lei q --save" as safe as "lei q" to prevent against accidental data loss when clobbering an existing output, --- lib/PublicInbox/LeiUp.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/LeiUp.pm') 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; } -- cgit v1.2.3-24-ge0c7