File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ _tipc_bearer() {
40
40
elif [[ $cword -eq $optind +3 ]]; then
41
41
case " $media " in
42
42
" udp" )
43
- local names=$( tipc bearer list | awk -F: ' /^udp:/ {print $2}' )
43
+ local names=$( tipc bearer list 2> /dev/null | awk -F: ' /^udp:/ {print $2}' )
44
44
COMPREPLY=( $( compgen -W ' $names' -- $cur ) )
45
45
;;
46
46
" eth" )
@@ -63,7 +63,8 @@ _tipc_link() {
63
63
COMPREPLY=( $( compgen -W ' link' -- $cur ) )
64
64
elif [[ $cword -eq $optind +1 ]]; then
65
65
# awk drops link state and last trailing :
66
- local links=$( tipc link list | awk ' {print substr($1, 0, length($1)-1)}' )
66
+ local links=$( tipc link list 2> /dev/null | \
67
+ awk ' {print substr($1, 0, length($1)-1)}' )
67
68
if [[ $filter == " peers" ]]; then
68
69
links=$( command sed ' /broadcast-link/d' <<< " $links" )
69
70
fi
You can’t perform that action at this time.
0 commit comments