nmcli/bash-completion: fix completion for device names for nmcli device set

Fixes: 7405d5c7b7
This commit is contained in:
Thomas Haller 2015-09-21 18:24:17 +02:00
parent 32e783e753
commit fcc51f1ab7

View file

@ -1292,7 +1292,7 @@ _nmcli()
;;
se|set)
if [[ ${#words[@]} -eq 3 ]]; then
_nmcli_compl_COMMAND_nl "${words[2]}" "$(printf "ifname\n%s" "$(_nmcli_con_show NAME)")"
_nmcli_compl_COMMAND_nl "${words[2]}" "$(printf "ifname\n%s" "$(_nmcli_dev_status DEVICE)")"
else
_nmcli_array_delete_at words 0 1
OPTIONS=(ifname)