Commit 3b1bf0e7 authored by Valentin Samir's avatar Valentin Samir

Oups, on ne stocker pas le serveur courant juste dans le scope de la fonction de bash completion.

parent 2caa9f97
......@@ -48,12 +48,14 @@ _cranspasswords(){
# On détermine si on utilsie un serveur alternatif
if contain "--server" "${COMP_WORDS[*]}"; then
if [[ "$prev" = "--server" ]]; then
server=$last;
_cranspasswords_server=$last;
fi
else
server="default";
_cranspasswords_server="default";
fi
server=$_cranspasswords_server
# les options possibles pour notre auto-complétion
if [[ $cur_first_char = "-" ]]; then
COMPREPLY=( $(compgen -W "$opts" -- $cur ) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment