summaryrefslogtreecommitdiffstats
path: root/shell-completion/bash/localectl
diff options
context:
space:
mode:
authorLuca Boccassi <luca.boccassi@microsoft.com>2021-06-22 15:56:19 +0200
committerLuca Boccassi <luca.boccassi@microsoft.com>2021-06-22 15:56:47 +0200
commit36ec026830c6978be8bd39f3c6d1d7822495e07f (patch)
tree6d0fa55ac2901264012977d7cde0dd9baf703ba4 /shell-completion/bash/localectl
parentcompletion/systemd-delta,-resolve: autocomplete with parameters (diff)
downloadsystemd-36ec026830c6978be8bd39f3c6d1d7822495e07f.tar.xz
systemd-36ec026830c6978be8bd39f3c6d1d7822495e07f.zip
completion: fix 'unbound variables' errors
Fixes https://github.com/systemd/systemd/issues/19987
Diffstat (limited to 'shell-completion/bash/localectl')
-rw-r--r--shell-completion/bash/localectl2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell-completion/bash/localectl b/shell-completion/bash/localectl
index fa0f8fdca1..987ae34cc9 100644
--- a/shell-completion/bash/localectl
+++ b/shell-completion/bash/localectl
@@ -67,7 +67,7 @@ _localectl() {
fi
done
- if [[ -z $verb ]]; then
+ if [[ -z ${verb-} ]]; then
comps=${VERBS[*]}
elif __contains_word "$verb" ${VERBS[VARIANTS]}; then
comps=$(command localectl list-x11-keymap-layouts)