Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Heusel <christian@heusel.eu>2024-04-23 14:57:55 +0200
committerLevente Polyak <anthraxx@archlinux.org>2024-04-24 22:55:18 +0200
commitdced77d23de2a9b00faed40350d229aaaffaa4b2 (patch)
tree566a382484bfb3a6be417b012da05d985ca23f09 /src
parent5780ba0e380d619c7e6632edbf6e357dce73289f (diff)
fix(completion): fix erroneous completion variables
The architecture definition of the variable was using invalid bash syntax and was previously unused: $ _binary_arch=${DEVTOOLS_VALID_ARCHES[*]:0:-1} bash: -1: substring expression < 0 We therefore fix the definition of the variable and use it for the autocompletion of the offload-build command. Furthermore fix wrongly named architecture variables that have been missed from previous refactoring. Fixes #222 Component: completion Fixes: f961e2e ("completion: implemented structured declarative bash completions") Fixes: 4173e0a ("chore: refactor variable names in valid-{tags,repos}.sh") Signed-off-by: Christian Heusel <christian@heusel.eu> Co-authored-by: Levente Polyak <anthraxx@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/lib/valid-tags.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/valid-tags.sh b/src/lib/valid-tags.sh
index cef0cc6..62e40ae 100644
--- a/src/lib/valid-tags.sh
+++ b/src/lib/valid-tags.sh
@@ -4,8 +4,13 @@
:
# shellcheck disable=2034
-DEVTOOLS_VALID_ARCHES=(
+DEVTOOLS_VALID_BINARY_ARCHES=(
x86_64
+)
+
+# shellcheck disable=2034
+DEVTOOLS_VALID_ARCHES=(
+ "${DEVTOOLS_VALID_BINARY_ARCHES[@]}"
any
)