Skip to content

Commit

Permalink
Fix typo in bash_completions.go and zsh_completions.go (spf13#1459)
Browse files Browse the repository at this point in the history
  • Loading branch information
favonia authored and umarcor committed Nov 16, 2021
1 parent ab6691f commit cee3bca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bash_completions.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ __%[1]s_handle_go_custom_completion()
$filteringCmd
elif [ $((directive & shellCompDirectiveFilterDirs)) -ne 0 ]; then
# File completion for directories only
local subDir
local subdir
# Use printf to strip any trailing newline
subdir=$(printf "%%s" "${out[0]}")
if [ -n "$subdir" ]; then
Expand Down
2 changes: 1 addition & 1 deletion zsh_completions.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ _%[1]s()
_arguments '*:filename:'"$filteringCmd"
elif [ $((directive & shellCompDirectiveFilterDirs)) -ne 0 ]; then
# File completion for directories only
local subDir
local subdir
subdir="${completions[1]}"
if [ -n "$subdir" ]; then
__%[1]s_debug "Listing directories in $subdir"
Expand Down

0 comments on commit cee3bca

Please sign in to comment.