mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-05 18:50:09 +02:00
Properly complete partially written vercodes
This commit is contained in:
parent
2f3a92cd29
commit
cd666bb8e8
@ -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;;
|
||||||
*)
|
*)
|
||||||
|
Loading…
Reference in New Issue
Block a user