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:47 +01:00
parent 6a0667d2b6
commit 36ec026830
17 changed files with 18 additions and 18 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ _resolvectl() {
fi
done
if [[ -z $verb ]]; then
if [[ -z ${verb-} ]]; then
comps="${VERBS[*]}"
elif __contains_word "$verb" ${VERBS[STANDALONE]} ${VERBS[DOMAIN]}; then