tools: Fix buildscript-bash-completion

The dynamic completion of the variants is broken since 1946aaca87.
This hardcodes the available variants. They won't change often.

Signed-off-by: Robert Langhammer <rlanghammer@web.de>
This commit is contained in:
Robert Langhammer 2021-02-18 10:40:00 +01:00
parent 539406d96b
commit 8254dde36d
Signed by untrusted user: rohammer
GPG Key ID: 27B910F51AC34700
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]}"))