fixed debug bug

This commit is contained in:
Gordon Grant-Stuart 2023-05-25 12:52:29 +01:00
parent a165e021d9
commit db89bc9bca

View File

@ -42,8 +42,9 @@ function debugopt () {
} }
function dbg () { function dbg () {
read line while read line; do
[[ "$(awk "/^$1/ {print \$2}" ${DEBUGCONF})" =~ "[123]" ]] && echo $line >> "$BASEDIR/var/tunnelkeeper-$(date +"%Y%m%d").log" [[ "$(awk "/^$1/ {print \$2}" ${DEBUGCONF})" =~ "[123]" ]] && echo $line >> "$BASEDIR/var/tunnelkeeper-$(date +"%Y%m%d").log"
done
} }
function connect () { function connect () {