Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions case-lib/hijack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ function func_exit_handler()
# shellcheck disable=SC2154
wcLog=$(wc -l "$logfile")
dlogi "nlines=$wcLog"
local nlines; nlines=$(wc -l < "$logfile")
# Line 1 is the header
if [ "$nlines" -le 1 ]; then
dloge "Empty logger trace"
exit_status=1
fi
fi
# when case ends, store kernel log
# /var/log/kern.log format:
Expand Down