From 149ad8d488af3cdf98b13a9042af43f2d155175b Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 10 Sep 2016 10:33:39 +1200 Subject: Move a local declaration --- bash/bash_completion.d/git.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bash') diff --git a/bash/bash_completion.d/git.bash b/bash/bash_completion.d/git.bash index 7e256952..926cb151 100644 --- a/bash/bash_completion.d/git.bash +++ b/bash/bash_completion.d/git.bash @@ -131,8 +131,8 @@ _git() { # Complete with remote subcommands and then remote names remote) - local word if ((COMP_CWORD == 2)) ; then + local word while IFS= read -r word ; do [[ -n $word ]] || continue COMPREPLY[${#COMPREPLY[@]}]=$word -- cgit v1.2.3