Browse Source

[Minor] Rspamadm: Add zstd compression support to grep subcommand

tags/2.0
Vsevolod Stakhov 5 years ago
parent
commit
7fc1dd5af0
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      lualib/rspamadm/grep.lua

+ 2
- 0
lualib/rspamadm/grep.lua View File

@@ -90,6 +90,8 @@ local function handler(args)
h, err = io.popen('bzcat ' .. n, 'r')
elseif string.match(n, '%.gz$') then
h, err = io.popen('zcat ' .. n, 'r')
elseif string.match(n, '%.zst$') then
h, err = io.popen('zstdcat ' .. n, 'r')
elseif n == 'stdin' then
h = io.input()
else

Loading…
Cancel
Save