mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 08:56:43 +08:00
completions ip: silence stderr in case -d does not exist (busybox) (#10509)
This commit is contained in:
parent
56a168d37f
commit
bd4e5fe69a
|
@ -199,7 +199,7 @@ function __fish_ip_netns_list
|
|||
end
|
||||
|
||||
function __fish_ip_routing_tables
|
||||
command ip -d route show table all | string replace -fr '.*\stable\s(\S+).*' '$1'
|
||||
command ip -d route show table all 2>/dev/null | string replace -fr '.*\stable\s(\S+).*' '$1'
|
||||
end
|
||||
|
||||
function __fish_ip_types
|
||||
|
|
Loading…
Reference in New Issue
Block a user