aboutsummaryrefslogtreecommitdiffstats
path: root/src/_fail2ban-regex
diff options
context:
space:
mode:
authorJesse Ayala <JesseAye@users.noreply.github.com>2025-06-11 20:17:41 -0400
committerGitHub <noreply@github.com>2025-06-11 20:17:41 -0400
commitd326bdc241593b5f6fbc4769c876e72972435ee5 (patch)
treed413fa4709da006014f811697ddebb78bc71e741 /src/_fail2ban-regex
parentAdd fail2ban-regex options and parameters (diff)
downloadzsh-completions-d326bdc241593b5f6fbc4769c876e72972435ee5.tar
zsh-completions-d326bdc241593b5f6fbc4769c876e72972435ee5.tar.gz
zsh-completions-d326bdc241593b5f6fbc4769c876e72972435ee5.tar.bz2
zsh-completions-d326bdc241593b5f6fbc4769c876e72972435ee5.tar.lz
zsh-completions-d326bdc241593b5f6fbc4769c876e72972435ee5.tar.xz
zsh-completions-d326bdc241593b5f6fbc4769c876e72972435ee5.tar.zst
zsh-completions-d326bdc241593b5f6fbc4769c876e72972435ee5.zip
Fix error when no matching files in working dir
If there are no files in the current working directory, zparse opts complains with "missing argument for option: -g" Co-authored-by: Shohei YOSHIDA <syohex@gmail.com>
Diffstat (limited to 'src/_fail2ban-regex')
-rw-r--r--src/_fail2ban-regex2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/_fail2ban-regex b/src/_fail2ban-regex
index 2b32343..61f4651 100644
--- a/src/_fail2ban-regex
+++ b/src/_fail2ban-regex
@@ -44,7 +44,7 @@ _arguments -A "-*" -n \
'--print-all-ignored[print all ignored lines, no matter how many]' \
'(-t --log-traceback)'{-t,--log-traceback}'[enrich log-messages with compressed tracebacks]' \
'--full-traceback[enrich log-messages with full, uncompressed tracebacks]:' \
- '1:file:_files -g *.log' \
+ '1:file:_files -g \*.log' \
'2:file:_files -W /etc/fail2ban/filter.d -g \*\.\(conf\|local\)' \
'3:file:_files -W /etc/fail2ban/filter.d -g \*\.\(conf\|local\)'