mirror of https://github.com/CISOfy/lynis.git
Update binaries
Fix a showing error for grep --help on OpenBSD. Discovered by me, fixed by @mboelen
This commit is contained in:
parent
967b9f1ec7
commit
aec1f59432
|
@ -338,7 +338,7 @@
|
||||||
|
|
||||||
# If grep is capable of extended regexp, use that instead of egrep to avoid annoying warning
|
# If grep is capable of extended regexp, use that instead of egrep to avoid annoying warning
|
||||||
if [ "${GREPBINARY:-}" ] ; then
|
if [ "${GREPBINARY:-}" ] ; then
|
||||||
${GREPBINARY} --help | ${GREPBINARY} -e "extended-regexp" > /dev/null
|
${GREPBINARY} --help 2> /dev/null | ${GREPBINARY} -e "extended-regexp" > /dev/null
|
||||||
if [ $? -eq 0 ] ; then
|
if [ $? -eq 0 ] ; then
|
||||||
EGREPBINARY="${GREPBINARY} -E"
|
EGREPBINARY="${GREPBINARY} -E"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue