completion: watch out for bash 3

This commit is contained in:
Loic Nageleisen 2017-06-29 22:40:06 +02:00
parent a99b9c201d
commit c81d8b5c96

View file

@ -2,7 +2,7 @@
#/etc/bash_completion #/etc/bash_completion
#/usr/local/share/bash-completion/bash_completion #/usr/local/share/bash-completion/bash_completion
bash_completion_file="/opt/arch/share/bash-completion/bash_completion" bash_completion_file="/opt/arch/share/bash-completion/bash_completion"
if [[ -f "$bash_completion_file" ]]; then if [[ $BASH_VERSION != 3.* && -f "$bash_completion_file" ]]; then
source "$bash_completion_file" source "$bash_completion_file"
fi fi