Skip to content

Commit

Permalink
Fixing error in bash completion script
Browse files Browse the repository at this point in the history
  • Loading branch information
Gealber committed Mar 13, 2022
1 parent 93c115d commit d08bd83
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bash/devto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,10 @@ _find_command () {
}

_get_argc () {
local line=${COMP_LINE}
IFS=' ' read -r -a array <<< "$line"
len="${#array[@]}"
echo "$len"
lenArr="${#array[@]}"
echo "$lenArr"
}

complete -F _complete_devto devto

0 comments on commit d08bd83

Please sign in to comment.