summaryrefslogtreecommitdiff
path: root/shell-completion/bash/hostnamectl
diff options
context:
space:
mode:
Diffstat (limited to 'shell-completion/bash/hostnamectl')
-rw-r--r--shell-completion/bash/hostnamectl2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell-completion/bash/hostnamectl b/shell-completion/bash/hostnamectl
index 0f69e23e6f..6f1909b599 100644
--- a/shell-completion/bash/hostnamectl
+++ b/shell-completion/bash/hostnamectl
@@ -77,7 +77,7 @@ _hostnamectl() {
fi
done
- if [[ -z $verb ]]; then
+ if [[ -z ${verb-} ]]; then
comps=${VERBS[*]}
elif __contains_word "$verb" ${VERBS[CHASSIS]}; then
comps='desktop laptop convertible server tablet handset watch embedded vm container'