completions ip: silence stderr in case -d does not exist (busybox) (#10509)

This commit is contained in:
Jannik Vieten
2024-05-20 14:28:40 +02:00
committed by GitHub
parent 56a168d37f
commit bd4e5fe69a

View File

@@ -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