mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 08:56:15 +09:00
completion/hostnamectl: do not dereference non-existing OPTS[ARGUNKNOWN]
This commit is contained in:
@@ -39,7 +39,7 @@ _hostnamectl() {
|
||||
[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
|
||||
--host|-H)
|
||||
comps=$(compgen -A hostname)
|
||||
|
||||
Reference in New Issue
Block a user