completion: fix 'unbound variables' errors

Fixes https://github.com/systemd/systemd/issues/19987
This commit is contained in:
Luca Boccassi
2021-06-22 14:56:19 +01:00
parent 6a0667d2b6
commit 36ec026830
17 changed files with 18 additions and 18 deletions
+1 -1
View File
@@ -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)