Fix checking of distcc

This commit is contained in:
Vincent Sanders 2015-08-12 15:04:35 +01:00
parent ecc6a12ed6
commit b50ee13100
1 changed files with 3 additions and 2 deletions

View File

@ -381,10 +381,11 @@ fi
DISTCC=distcc
PARALLEL=1
${DISTCC} --version >/dev/null 2>&1
if [ $? -eq 0 ];then
HAVE_DISTCC=$(${DISTCC} --version >/dev/null 2>&1 && echo "true" || echo "false")
if [ ${HAVE_DISTCC} = "true" ];then
PARALLEL=$(${DISTCC} -j)
export PATH=/usr/lib/distcc:${PATH}
export DISTCC_DIR=${JENKINS_HOME}
fi