Browse Source

ddns-scripts: fix logging bug

Fixes issue #11282, this patch was provided by PaulFertser on the #openwrt
IRC.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
lilik-openwrt-22.03
Rosen Penev 5 years ago
parent
commit
bf68826897
No known key found for this signature in database GPG Key ID: 36D31CFA845F0E3B
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      net/ddns-scripts/files/dynamic_dns_functions.sh

+ 2
- 2
net/ddns-scripts/files/dynamic_dns_functions.sh View File

@ -282,11 +282,11 @@ write_log() {
[ $__LEVEL -eq 7 ] && return # no syslog for debug messages
__CMD=$(echo -e "$__CMD" | tr -d '\n' | tr '\t' ' ') # remove \n \t chars
[ $__EXIT -eq 1 ] && {
eval "$__CMD" # force syslog before exit
eval '$__CMD' # force syslog before exit
exit 1
}
[ $use_syslog -eq 0 ] && return
[ $((use_syslog + __LEVEL)) -le 7 ] && eval "$__CMD"
[ $((use_syslog + __LEVEL)) -le 7 ] && eval '$__CMD'
return
}


Loading…
Cancel
Save