nmcli/bash-completion: don't allow specifying connection by apath for 'connection modify'

The following must not be allowed:

  $ nmcli connection modify apath /org/freedesktop/NetworkManager/ActiveConnection/0
This commit is contained in:
Thomas Haller 2014-12-22 12:35:38 +01:00
parent 5ef233936a
commit 3cbce6994a

View file

@ -1150,7 +1150,7 @@ _nmcli()
;;
esac
OPTIONS=(id uuid path apath)
OPTIONS=(id uuid path)
_nmcli_compl_ARGS_CONNECTION && return 0
while [[ "${#words[@]}" -gt 0 ]]; do
if [[ ${#words[@]} -le 1 ]]; then