mirror of https://github.com/CISOfy/lynis.git
Don't use type -p, as it won't work on all systems
This commit is contained in:
parent
c70be62f4e
commit
95df056ca8
|
@ -89,7 +89,8 @@
|
|||
#
|
||||
# Test : PKGS-7303
|
||||
# Description : Query brew package manager
|
||||
if [ `type -p brew` ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
|
||||
FIND=`which brew 2> /dev/null`
|
||||
if [ ! "${FIND}" = "" ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
|
||||
Register --test-no PKGS-7303 --preqs-met ${PREQS_MET} --weight L --network NO --description "Query brew package manager"
|
||||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
Display --indent 4 --text "- Searching brew" --result FOUND --color GREEN
|
||||
|
|
Loading…
Reference in New Issue