build: make extras hook test a bit more portable and traceable
This commit is contained in:
parent
3ca6d0cd5d
commit
ddd58223cb
|
@ -574,8 +574,10 @@ setup_extras()
|
|||
|
||||
. ${CONFIGDIR}/extras.conf
|
||||
|
||||
if type ${2}_hook > /dev/null; then
|
||||
if [ -n "$(type ${2}_hook 2> /dev/null)" ]; then
|
||||
echo ">>> Begin extra: ${2}_hook"
|
||||
${2}_hook ${1}
|
||||
echo ">>> End extra: ${2}_hook"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue