Skip to content
This repository was archived by the owner on Jan 25, 2019. It is now read-only.

Commit 2c402e4

Browse files
committed
Fix bash-completion
1 parent ed4a11e commit 2c402e4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

bash-completion.sh

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# bash completions for the command `ds restore`
22
_ds_restore() {
3-
local cur=${COMP_WORDS[COMP_CWORD]} ## $1
4-
if [[ $COMP_CWORD -eq 2 ]]; then
5-
COMPREPLY=( $(compgen -f -X "!*.tgz" -- $cur) )
6-
fi
3+
local files_tgz=$(ls $(_ds_container_dir) | grep '\.tgz$')
4+
COMPREPLY=( $(compgen -W "$files_tgz" -- $1) )
75
}

0 commit comments

Comments
 (0)