skip debug log on partial lines if buffer length is 0
This commit is contained in:
@@ -460,8 +460,10 @@ function main() {
|
|||||||
read -r -t 1 -u $STDIN buf
|
read -r -t 1 -u $STDIN buf
|
||||||
rc=$?
|
rc=$?
|
||||||
if (( rc > 128 )); then
|
if (( rc > 128 )); then
|
||||||
line+=$buf
|
if [ -n "$buf" ]; then
|
||||||
echo "< $buf (partial line: '$line')" >&$DEBUGLOG
|
line+=$buf
|
||||||
|
echo "< $buf (partial line: '$line')" >&$DEBUGLOG
|
||||||
|
fi
|
||||||
continue
|
continue
|
||||||
elif (( rc == 0 )); then
|
elif (( rc == 0 )); then
|
||||||
line+=$buf
|
line+=$buf
|
||||||
|
|||||||
Reference in New Issue
Block a user