Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
dingyiyi0226 committed Aug 17, 2021
1 parent 69c8526 commit 416b6b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions completion/completion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ _spc(){
2)
local command="${COMP_WORDS[1]}"

COMPREPLY=( $(compgen -W "$(bin/spc "$command" --complete)" -- "$word") )
COMPREPLY=( $(compgen -W "$(spc "$command" --complete)" -- "$word") )
;;
3)
local command="${COMP_WORDS[1]}"
local option="${COMP_WORDS[2]}"

if [ "$command" = "upload" ] || [ "$command" = "download" ]; then
COMPREPLY=( $(compgen -W "$(bin/spc "$command" --complete "$option")" -- "$word") )
COMPREPLY=( $(compgen -W "$(spc "$command" --complete "$option")" -- "$word") )
else
COMPREPLY=()
fi
Expand Down

0 comments on commit 416b6b5

Please sign in to comment.