diff options
author | Luca Boccassi <luca.boccassi@microsoft.com> | 2021-06-22 14:56:19 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@microsoft.com> | 2021-06-22 14:56:47 +0100 |
commit | 36ec026830c6978be8bd39f3c6d1d7822495e07f (patch) | |
tree | 6d0fa55ac2901264012977d7cde0dd9baf703ba4 /shell-completion/bash/timedatectl | |
parent | 6a0667d2b6f05682c2ced1b53132274049b9ea5c (diff) | |
download | systemd-36ec026830c6978be8bd39f3c6d1d7822495e07f.tar.gz |
completion: fix 'unbound variables' errors
Fixes https://github.com/systemd/systemd/issues/19987
Diffstat (limited to 'shell-completion/bash/timedatectl')
-rw-r--r-- | shell-completion/bash/timedatectl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell-completion/bash/timedatectl b/shell-completion/bash/timedatectl index 3e72ce6655..29dc27b39c 100644 --- a/shell-completion/bash/timedatectl +++ b/shell-completion/bash/timedatectl @@ -76,7 +76,7 @@ _timedatectl() { fi done - if [[ -z $verb ]]; then + if [[ -z ${verb-} ]]; then comps=${VERBS[*]} elif __contains_word "$verb" ${VERBS[BOOLEAN]}; then comps='true false' |