From cee3bcacfdb7785029cea1cce8d4390df46026c3 Mon Sep 17 00:00:00 2001 From: favonia Date: Sun, 18 Jul 2021 16:04:36 -0500 Subject: [PATCH] Fix typo in bash_completions.go and zsh_completions.go (#1459) --- bash_completions.go | 2 +- zsh_completions.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bash_completions.go b/bash_completions.go index 76fd7d89dd..6c360c595f 100644 --- a/bash_completions.go +++ b/bash_completions.go @@ -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 diff --git a/zsh_completions.go b/zsh_completions.go index c64c360a0e..624adab537 100644 --- a/zsh_completions.go +++ b/zsh_completions.go @@ -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"