We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2669ff commit 88adae1Copy full SHA for 88adae1
case-lib/hijack.sh
@@ -48,6 +48,12 @@ function func_exit_handler()
48
# shellcheck disable=SC2154
49
wcLog=$(wc -l "$logfile")
50
dlogi "nlines=$wcLog"
51
+ local nlines; nlines=$(cat "$logfile" | wc -l)
52
+ # Line 1 is the header
53
+ if [ "$nlines" -le 1 ]; then
54
+ dloge "Empty logger trace"
55
+ exit_status=1
56
+ fi
57
fi
58
# when case ends, store kernel log
59
# /var/log/kern.log format:
0 commit comments