sitecopy: fixed a bug with grep and brackets: use sitecopy -v to fetch sites.
This commit is contained in:
parent
c7e26402ca
commit
7bcf9a4f18
@ -20,8 +20,8 @@ _sitecopy()
|
||||
;;
|
||||
*)
|
||||
if [ -r ~/.sitecopyrc ]; then
|
||||
COMPREPLY=( $( compgen -W "$(command grep '^["$'\t '"]*site' \
|
||||
~/.sitecopyrc | awk '{print $2}')" -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W "$(sitecopy -v | \
|
||||
command sed -n '/^Site:/s/Site: //p')" -- "$cur" ) )
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
Loading…
x
Reference in New Issue
Block a user