diff options
author | Eric Wong <e@80x24.org> | 2022-09-02 18:26:23 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-09-04 14:41:44 +0000 |
commit | 07da5adf0a781b9d30ca705d0e1fb116a7b06a9b (patch) | |
tree | 6bc5e0a7c7d3a17c720d0c271f719551af23be69 /lib/PublicInbox/Import.pm | |
parent | fc89141c0d795e564eda4799a4ae69a26f2a8e14 (diff) | |
download | public-inbox-07da5adf0a781b9d30ca705d0e1fb116a7b06a9b.tar.gz |
No need to pollute non-interactive output for gc use. This suppresses notifications from my `lei up --all -q' cronjob.
Diffstat (limited to 'lib/PublicInbox/Import.pm')
-rw-r--r-- | lib/PublicInbox/Import.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/PublicInbox/Import.pm b/lib/PublicInbox/Import.pm index 2c8f310a..04192174 100644 --- a/lib/PublicInbox/Import.pm +++ b/lib/PublicInbox/Import.pm @@ -192,7 +192,10 @@ sub _update_git_info ($$) { }; warn "$ibx->{inboxdir} index failed: $@\n" if $@; } - eval { run_die([@cmd, qw(gc --auto)]) } if $do_gc; + if ($do_gc) { + my @quiet = (-t STDERR ? () : '-q'); + eval { run_die([@cmd, qw(gc --auto), @quiet]) } + } } sub barrier { |