bash completion: use || instead of -o

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
Valentin Rothberg 2019-09-02 12:46:43 +02:00
parent 7b0db25a74
commit 91510e39ab

View File

@ -10,7 +10,7 @@ _complete_() {
local option_with_args
for option_with_args in $options_with_args $transports
do
if [ "$option_with_args" == "$prev" -o "$option_with_args" == "$cur" ]
if [ "$option_with_args" == "$prev" ] || [ "$option_with_args" == "$cur" ]
then
return
fi