From d145091335c3581a5946940bcd76da047a7b9466 Mon Sep 17 00:00:00 2001 From: Chenxiong Qi Date: Jun 22 2018 10:21:54 +0000 Subject: Remove compatible code with EL5 in bash completion There is no EL5 release for rpkg any more. _get_comp_words_by_ref is workable in all Fedora releases and EPEL. Signed-off-by: Chenxiong Qi --- diff --git a/conf/bash-completion/fedpkg.bash b/conf/bash-completion/fedpkg.bash index f5a0b14..cfc6c93 100644 --- a/conf/bash-completion/fedpkg.bash +++ b/conf/bash-completion/fedpkg.bash @@ -22,13 +22,7 @@ _fedpkg() } local cur prev - # _get_comp_words_by_ref is in bash-completion >= 1.2, which EL-5 lacks. - if type _get_comp_words_by_ref &>/dev/null; then - _get_comp_words_by_ref cur prev - else - cur="${COMP_WORDS[COMP_CWORD]}" - prev="${COMP_WORDS[COMP_CWORD-1]}" - fi + _get_comp_words_by_ref cur prev # global options