mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
Properly complete partially written vercodes
This commit is contained in:
parent
2f3a92cd29
commit
cd666bb8e8
1 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue