1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-12 16:56:15 +01:00

Support .kiwi files for bash-completion

This commit enables osc to provide completion for both .spec and .kiwi
files, and ensures no ugly "not found" messages are displayed in the
terminal due to globbing.
This commit is contained in:
Michael Ikey Doherty 2014-04-03 12:06:47 +01:00
parent 0b7e49b648
commit 5519938392

5
dist/osc.complete vendored
View File

@ -437,8 +437,9 @@ build)
done
fi
if ((count == 2)) ; then
specs=($(command ls *.spec))
builtin compgen -W "${opts[*]} ${specs[*]}" -- "${cmdline[count]}"
specs=($(command ls *.spec 2>/dev/null))
images=($(command ls *.kiwi 2>/dev/null))
builtin compgen -W "${opts[*]} ${specs[*]} ${images[*]}" -- "${cmdline[count]}"
fi
;;
branch|getpac|bco|branchco)