mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-03 17:50:11 +02:00
Properly complete partially written vercodes
This commit is contained in:
parent
2f3a92cd29
commit
cd666bb8e8
@ -65,7 +65,8 @@ __apk_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
|
||||
if [[ "$line" == "Build Version:"* ]]
|
||||
@ -99,7 +100,7 @@ __complete_build() {
|
||||
-*)
|
||||
__complete_options
|
||||
return 0;;
|
||||
*:)
|
||||
*:*)
|
||||
__vercode
|
||||
return 0;;
|
||||
*)
|
||||
|
Loading…
Reference in New Issue
Block a user