forked from freifunk-franken/firmware
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:
parent
990862419c
commit
b98ba27690
|
@ -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]}"))
|
||||
|
|
Loading…
Reference in New Issue