Skip to content

Commit

Permalink
Fix SC2199: Arrays implicitly concatenate in
Browse files Browse the repository at this point in the history
  • Loading branch information
Yogesh Lonkar committed Aug 5, 2019
1 parent c5612e8 commit c3f51be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autocomplete/bash_autocomplete
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
: ${PROG:=$(basename ${BASH_SOURCE})}

_cli_bash_autocomplete() {
if [[ "${COMP_WORDS[@]:0:$COMP_CWORD}" != "source" ]]; then
if [[ "${COMP_WORDS[0]}" != "source" ]]; then
local cur opts base
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
Expand Down

0 comments on commit c3f51be

Please sign in to comment.