Commit da851e47 authored by Vitaly Lipatov's avatar Vitaly Lipatov

router: fix vlog() returning false when VERBOSE is unset

vlog() { [ -n "$VERBOSE" ] && log "..." } returns exit code 1 when VERBOSE is empty, causing &&/|| chains to take wrong branch. This made "Extra DNS unreachable" message appear even when DNS works. Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent cab9fabe
...@@ -105,7 +105,7 @@ while [ -n "$1" ] ; do ...@@ -105,7 +105,7 @@ while [ -n "$1" ] ; do
done done
# Helpers # Helpers
vlog() { [ -n "$VERBOSE" ] && log " $*" ; } vlog() { [ -n "$VERBOSE" ] && log " $*" || true ; }
md5_lists() { cat "$@" 2>/dev/null | md5sum | awk '{print $1}' ; } md5_lists() { cat "$@" 2>/dev/null | md5sum | awk '{print $1}' ; }
ensure_state_dir() { mkdir -p "$STATE_DIR/$1" ; } ensure_state_dir() { mkdir -p "$STATE_DIR/$1" ; }
......
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