build: make extras hook test a bit more portable and traceable

This commit is contained in:
Franco Fichtner 2016-05-05 22:37:51 +02:00
parent 3ca6d0cd5d
commit ddd58223cb
1 changed files with 3 additions and 1 deletions

View File

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