From 416b6b5013d037894df30c587107103dfeb24dd9 Mon Sep 17 00:00:00 2001 From: "Huan-Ting,Chen" Date: Tue, 17 Aug 2021 17:41:10 +0800 Subject: [PATCH] fix bugs --- completion/completion.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/completion/completion.sh b/completion/completion.sh index 3ccb5aa..486b464 100755 --- a/completion/completion.sh +++ b/completion/completion.sh @@ -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