mirror of
https://github.com/systemd/systemd.git
synced 2025-05-29 01:05:59 +03:00
completion/hostnamectl: do not dereference non-existing OPTS[ARGUNKNOWN]
This commit is contained in:
parent
abfbfee36c
commit
df7ca94009
@ -39,7 +39,7 @@ _hostnamectl() {
|
|||||||
[ARG]='-H --host -M --machine --json'
|
[ARG]='-H --host -M --machine --json'
|
||||||
)
|
)
|
||||||
|
|
||||||
if __contains_word "$prev" ${OPTS[ARG]} ${OPTS[ARGUNKNOWN]}; then
|
if __contains_word "$prev" ${OPTS[ARG]}; then
|
||||||
case $prev in
|
case $prev in
|
||||||
--host|-H)
|
--host|-H)
|
||||||
comps=$(compgen -A hostname)
|
comps=$(compgen -A hostname)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user