Fix review comments

This commit is contained in:
Yogesh Lonkar
2019-08-05 16:58:04 +02:00
parent d6523cf869
commit c5612e8cd2
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ _cli_bash_autocomplete() {
local cur opts base
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
if [[ $cur == -* ]]; then
if [[ "$cur" == "-"* ]]; then
opts=$( ${COMP_WORDS[@]:0:$COMP_CWORD} ${cur} --generate-bash-completion )
else
opts=$( ${COMP_WORDS[@]:0:$COMP_CWORD} --generate-bash-completion )