Skip to content
Myr

Clean up minor bash complaints from shellcheck.net

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Eric Paris · committed by Eric Paris · parent 7fc9f14 · Browse files · 1 file+2 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−3 removed

  • other:+2 added−3 removed

1 file+2 added−3 removed

modified:bash_completions.go+2 added-3 removed
20 unmodified lines
2122__debug()23{24 if [[ -n ${BASH_COMP_DEBUG_FILE} ]]; then25 echo "$*" >> ${BASH_COMP_DEBUG_FILE}25 echo "$*" >> "${BASH_COMP_DEBUG_FILE}"26 fi27}2829__index_of_word()
142 unmodified lines
172173func postscript(out *bytes.Buffer, name string) {174 fmt.Fprintf(out, "__start_%s()\n", name)175 fmt.Fprintf(out, `{176 local cur prev words cword split176 local cur prev words cword177 _init_completion -s || return178179 local completions_func179 local c=0180 local flags=()181 local two_word_flags=()182 local flags_with_completion=()
168 unmodified lines