1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-20 13:50:12 +01:00

Support new Build: syntax in completion; retab

This commit is contained in:
Daniel Martí 2013-10-29 00:19:33 +01:00
parent 8627357cd9
commit c47b1dc286

View File

@ -54,10 +54,16 @@ __vercode() {
}
COMPREPLY=( $( compgen -W "$( while read line; do
[[ "$line" == "Build Version:"* ]] && {
if [[ "$line" == "Build Version:"* ]]
then
line="${line#*,}"
printf "${line%%,*} "
} done < "metadata/${p}.txt" )" -- $cur ) )
elif [[ "$line" == "Build:"* ]]
then
line="${line#*,}"
printf "${line%%,*} "
fi
done < "metadata/${p}.txt" )" -- $cur ) )
}
__complete_options() {