tee instead of redirecting

This commit is contained in:
Andrés 2016-08-11 17:06:32 -05:00 committed by GitHub
parent 7645a59964
commit 178e182d20

View File

@ -1468,7 +1468,7 @@ if [ "${PLATFORM}" = "psp1" ] && [ "${RA}" = "YES" ]; then
rm *.a
cp -v $RARCH_DIST_DIR/*.a .
./dist-cores.sh psp1 &> $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
./dist-cores.sh psp1 2>&1 | tee $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
if [ $? -eq 0 ]; then
MESSAGE="retroarch: [status: done] [$jobid]"
echo $MESSAGE
@ -1513,7 +1513,7 @@ if [ "${PLATFORM}" == "wii" ] && [ "${RA}" == "YES" ]; then
rm *.a
cp -v $RARCH_DIST_DIR/*.a .
sh ./dist-cores.sh wii &> $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
sh ./dist-cores.sh wii 2>&1 | tee $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
if [ $? -eq 0 ];
then
MESSAGE="retroarch: [status: done] [$jobid]"
@ -1559,7 +1559,7 @@ if [ "${PLATFORM}" == "ngc" ] && [ "${RA}" == "YES" ]; then
rm *.a
cp -v $RARCH_DIST_DIR/*.a .
sh ./dist-cores.sh ngc &> $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
sh ./dist-cores.sh ngc 2>&1 | tee $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
if [ $? -eq 0 ];
then
MESSAGE="retroarch: [status: done] [$jobid]"
@ -1604,7 +1604,7 @@ if [ "${PLATFORM}" == "ctr" ] && [ "${RA}" == "YES" ]; then
rm *.a
cp -v $RARCH_DIST_DIR/*.a .
JOBS=1 sh ./dist-cores.sh ctr &> $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
JOBS=1 sh ./dist-cores.sh ctr 2>&1 | tee -a $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
if [ $? -eq 0 ]; then
MESSAGE="retroarch: [status: done] [$jobid]"
echo $MESSAGE
@ -1657,7 +1657,7 @@ if [ "${PLATFORM}" == "vita" ] && [ "${RA}" == "YES" ]; then
rm *.a
cp -v $RARCH_DIST_DIR/*.a .
JOBS=1 sh ./dist-cores.sh vita &> $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
JOBS=1 sh ./dist-cores.sh vita 2>&1 | tee $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}.log
if [ $? -eq 0 ]; then
MESSAGE="retroarch: [status: done] [$jobid]"
echo $MESSAGE
@ -1701,7 +1701,7 @@ if [ "${PLATFORM}" == "ps3" ] && [ "${RA}" == "YES" ]; then
rm *.a
cp -v $RARCH_DIST_DIR/*.a .
JOBS=1 sh ./dist-cores.sh dex-ps3 &> $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}_dex.log
JOBS=1 sh ./dist-cores.sh dex-ps3 2>&1 | tee $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}_dex.log
if [ $? -eq 0 ]; then
MESSAGE="retroarch: [status: done] [$jobid]"
echo $MESSAGE
@ -1714,7 +1714,7 @@ if [ "${PLATFORM}" == "ps3" ] && [ "${RA}" == "YES" ]; then
fi
buildbot_log "$MESSAGE"
echo buildbot job: $MESSAGE
JOBS=1 sh ./dist-cores.sh cex-ps3 &> $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}_cex.log
JOBS=1 sh ./dist-cores.sh cex-ps3 2>&1 | tee $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}_cex.log
if [ $? -eq 0 ]; then
MESSAGE="retroarch: [status: done] [$jobid]"
echo $MESSAGE
@ -1727,7 +1727,7 @@ if [ "${PLATFORM}" == "ps3" ] && [ "${RA}" == "YES" ]; then
fi
buildbot_log "$MESSAGE"
echo buildbot job: $MESSAGE
JOBS=1 sh ./dist-cores.sh ode-ps3 &> $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}_ode.log
JOBS=1 sh ./dist-cores.sh ode-ps3 2>&1 | tee $TMPDIR/log/${BOT}/${LOGDATE}/${LOGDATE}_RetroArch_${PLATFORM}_ode.log
if [ $? -eq 0 ]; then
MESSAGE="retroarch: [status: done] [$jobid]"
echo $MESSAGE