diff options
author | Luca Boccassi <luca.boccassi@microsoft.com> | 2021-06-22 15:56:19 +0200 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@microsoft.com> | 2021-06-22 15:56:47 +0200 |
commit | 36ec026830c6978be8bd39f3c6d1d7822495e07f (patch) | |
tree | 6d0fa55ac2901264012977d7cde0dd9baf703ba4 /shell-completion/bash/localectl | |
parent | completion/systemd-delta,-resolve: autocomplete with parameters (diff) | |
download | systemd-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/localectl | 2 |
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) |