add or-trues

pull/3415/head
Thomas Stromberg 2018-12-05 13:49:56 -08:00
parent d7cc1a2938
commit b5707d56e6
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ if pgrep kubectl; then
fi
function cleanup_stale_routes() {
stale_routes=$(netstat -rn -f inet | awk '{ print $1 }' | grep 10.96.0.0)
stale_routes=$(netstat -rn -f inet | awk '{ print $1 }' | grep 10.96.0.0 || true)
if [[ "${stale_routes}" != "" ]]; then
echo "WARNING: deleting stale tunnel routes: ${stale_routes}"
for route in ${stale_routes}; do