From b98ba276900a2453c2199b104f90ce19eac1251a Mon Sep 17 00:00:00 2001 From: Robert Langhammer Date: Thu, 18 Feb 2021 10:40:00 +0100 Subject: [PATCH] tools: Fix buildscript-bash-completion The dynamic completion of the variants is broken since 1946aaca878f ("fff: create proper package variants instead of copying file"). This hardcodes the available variants. They won't change often. Signed-off-by: Robert Langhammer [add more verbose commit reference] Reviewed-by: Adrian Schmutzler --- tools/buildscript-bash-completion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/buildscript-bash-completion b/tools/buildscript-bash-completion index a675a963..9051f0ab 100644 --- a/tools/buildscript-bash-completion +++ b/tools/buildscript-bash-completion @@ -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]}"))