mirror of https://github.com/CISOfy/lynis.git
Fixed 'lynis show details' output
This commit is contained in:
parent
7d1fe1231a
commit
1e74f9be9a
|
@ -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
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue