TencentBlueKing/bk-bcs

[bug] bcs-ops get_lan_ip error

bingoct opened this issue · 0 comments

to avoid error, here should use grep -q and erro echo redirect to /dev/stderr.

if ! ip route show | grep "default via"; then