Fixed 'lynis show details' output

This commit is contained in:
Michael Boelen 2020-03-23 15:55:40 +01:00
parent 7d1fe1231a
commit 1e74f9be9a
No known key found for this signature in database
GPG Key ID: 26141F77A09D7F04
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ if [ $# -gt 0 ]; then
shift shift
if [ $# -eq 1 ]; then if [ $# -eq 1 ]; then
TESTID="$1" TESTID="$1"
awk -v search="Performing test ID $TESTID" '$0 ~ search {++f;p=1}p&&f==1;/===---/{p=0}' ${LOGFILE} awk -v search="Performing test ID $TESTID" '$0 ~ search {++f;p=1}p&&f==1;/====/{p=0}' ${LOGFILE}
fi fi
fi fi
;; ;;