Fix checking of distcc

This commit is contained in:
Vincent Sanders 2015-08-12 15:04:35 +01:00
parent ecc6a12ed6
commit b50ee13100

View File

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