1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-07-07 09:50:07 +02:00

Properly complete partially written vercodes

This commit is contained in:
Daniel Martí 2014-04-18 23:56:25 +02:00
parent 2f3a92cd29
commit cd666bb8e8

View File

@ -65,7 +65,8 @@ __apk_vercode() {
} }
__vercode() { __vercode() {
local p=${cur:0:-1} local p v
echo $cur | IFS=':' read p v
COMPREPLY=( $( compgen -P "${p}:" -W "$( while read line; do COMPREPLY=( $( compgen -P "${p}:" -W "$( while read line; do
if [[ "$line" == "Build Version:"* ]] if [[ "$line" == "Build Version:"* ]]
@ -99,7 +100,7 @@ __complete_build() {
-*) -*)
__complete_options __complete_options
return 0;; return 0;;
*:) *:*)
__vercode __vercode
return 0;; return 0;;
*) *)