mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
Support new Build: syntax in completion; retab
This commit is contained in:
parent
8627357cd9
commit
c47b1dc286
1 changed files with 134 additions and 128 deletions
|
@ -54,10 +54,16 @@ __vercode() {
|
||||||
}
|
}
|
||||||
|
|
||||||
COMPREPLY=( $( compgen -W "$( while read line; do
|
COMPREPLY=( $( compgen -W "$( while read line; do
|
||||||
[[ "$line" == "Build Version:"* ]] && {
|
if [[ "$line" == "Build Version:"* ]]
|
||||||
|
then
|
||||||
line="${line#*,}"
|
line="${line#*,}"
|
||||||
printf "${line%%,*} "
|
printf "${line%%,*} "
|
||||||
} done < "metadata/${p}.txt" )" -- $cur ) )
|
elif [[ "$line" == "Build:"* ]]
|
||||||
|
then
|
||||||
|
line="${line#*,}"
|
||||||
|
printf "${line%%,*} "
|
||||||
|
fi
|
||||||
|
done < "metadata/${p}.txt" )" -- $cur ) )
|
||||||
}
|
}
|
||||||
|
|
||||||
__complete_options() {
|
__complete_options() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue