completion: fix 'unbound variables' errors
Fixes https://github.com/systemd/systemd/issues/19987
This commit is contained in:
@@ -69,7 +69,7 @@ _networkctl() {
|
||||
return 0
|
||||
fi
|
||||
|
||||
if [[ -z $verb ]]; then
|
||||
if [[ -z ${verb-} ]]; then
|
||||
comps=${VERBS[*]}
|
||||
elif __contains_word "$verb" ${VERBS[STANDALONE]}; then
|
||||
comps=''
|
||||
|
||||
Reference in New Issue
Block a user