Fix SC2199: Arrays implicitly concatenate in

This commit is contained in:
Yogesh Lonkar 2019-08-05 17:07:46 +02:00
parent c5612e8cd2
commit c3f51bed6f
No known key found for this signature in database
GPG Key ID: A08E266247F12F6A

View File

@ -3,7 +3,7 @@
: ${PROG:=$(basename ${BASH_SOURCE})} : ${PROG:=$(basename ${BASH_SOURCE})}
_cli_bash_autocomplete() { _cli_bash_autocomplete() {
if [[ "${COMP_WORDS[@]:0:$COMP_CWORD}" != "source" ]]; then if [[ "${COMP_WORDS[0]}" != "source" ]]; then
local cur opts base local cur opts base
COMPREPLY=() COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}" cur="${COMP_WORDS[COMP_CWORD]}"