tools: Fix buildscript-bash-completion

The dynamic completion of the variants is broken since 1946aaca87
("fff: create proper package variants instead of copying file").
This hardcodes the available variants. They won't change often.

Signed-off-by: Robert Langhammer <rlanghammer@web.de>
[add more verbose commit reference]
Reviewed-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
Robert Langhammer 2021-02-18 10:40:00 +01:00 committed by Adrian Schmutzler
parent 990862419c
commit b98ba27690
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ selectbsp)
COMPREPLY=($(compgen -W "$(find bsp -name '*.bsp')" "${COMP_WORDS[2]}"))
;;
selectvariant)
COMPREPLY=($(compgen -W "$("${COMP_WORDS[0]}" "${COMP_WORDS[1]}" | sed '0,/available variants:/d')" "${COMP_WORDS[2]}"))
COMPREPLY=($(compgen -W "node layer3" "${COMP_WORDS[2]}"))
;;
build)
COMPREPLY=($(compgen -W "fast debug" "${COMP_WORDS[2]}"))