Commit d75e4383 authored by Ivan Mazhukin's avatar Ivan Mazhukin Committed by Vitaly Lipatov

bash_completion: fix bash < v.4 support (eterbug #18367)

parent fc5990ec
......@@ -217,7 +217,7 @@ __eepm_complete_mark() {
fi
done
# TODO logic for others commands
if [[ -v special ]]; then
if [[ -n "$special" ]]; then
case $special in
hold|unhold)
__eepm_list_installed_packages
......@@ -244,7 +244,7 @@ __eepm_complete_repo() {
fi
done
# TODO logic for others commands
if [[ -v special ]]; then
if [[ -n "$special" ]]; then
case $special in
change|set|add|Add)
__eepm_complete_repolist
......@@ -286,7 +286,7 @@ __eepm_complete_autoremove() {
fi
done
if [[ -v special ]]; then
if [[ -n "$special" ]]; then
COMPREPLY=( $(compgen -W "${subcommands}" -- "$cur") )
fi
fi
......@@ -306,7 +306,7 @@ __eepm_complete_commands() {
fi
done
if [[ -v special ]]; then
if [[ -n "$special" ]]; then
case $special in
install|Install|reinstall|add|i|it|-i|installed)
__eepm_list_available_packages
......
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