mirror of
https://github.com/spf13/cobra
synced 2025-04-01 04:19:15 +00:00
fix(bash): nounset unbound file filter variable on empty extension (#2228)
Happens at least if a flag is marked as filename, with "" given as extensions.
This commit is contained in:
parent
41b26ec8bb
commit
4ba5566f57
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ __%[1]s_process_completion_results() {
|
|||
|
||||
if (((directive & shellCompDirectiveFilterFileExt) != 0)); then
|
||||
# File extension filtering
|
||||
local fullFilter filter filteringCmd
|
||||
local fullFilter="" filter filteringCmd
|
||||
|
||||
# Do not use quotes around the $completions variable or else newline
|
||||
# characters will be kept.
|
||||
|
|
Loading…
Reference in a new issue