Don't use type -p, as it won't work on all systems

This commit is contained in:
mboelen 2016-03-24 14:35:12 +01:00
parent c70be62f4e
commit 95df056ca8
1 changed files with 2 additions and 1 deletions

View File

@ -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