Commit cc74595a authored by Vitaly Lipatov's avatar Vitaly Lipatov

route-update.sh: filter comments from gateway display

parent 6065882a
...@@ -292,7 +292,7 @@ process_routes() ...@@ -292,7 +292,7 @@ process_routes()
fi fi
local count=$(wc -l < "$resolved_new") local count=$(wc -l < "$resolved_new")
local gw_display=$(paste -sd, < "$gwdir/gateway") local gw_display=$(grep -v '^#' "$gwdir/gateway" | grep . | paste -sd,)
log "[$name]$label Loading $count routes into table $table via $gw_display" log "[$name]$label Loading $count routes into table $table via $gw_display"
if [ -n "$SHOW" ] ; then if [ -n "$SHOW" ] ; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment