From 8cf204e1314cb64f870474c6bf2668927e22da63 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 17 Oct 2015 01:40:20 +0200 Subject: reproducible arch: improve job output --- bin/reproducible_build_arch_pkg.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/reproducible_build_arch_pkg.sh b/bin/reproducible_build_arch_pkg.sh index 42d3ec8a..cb3364c5 100755 --- a/bin/reproducible_build_arch_pkg.sh +++ b/bin/reproducible_build_arch_pkg.sh @@ -176,7 +176,7 @@ fi mkdir b1 b2 remote_build 1 # only do the 2nd build if the 1st produced some results -if [ ! -z "$(ls $TMPDIR/b1/$SRCPACKAGE/*.pkg.tar.xz || true)" ] ; then +if [ ! -z "$(ls $TMPDIR/b1/$SRCPACKAGE/*.pkg.tar.xz 2>/dev/null|| true)" ] ; then remote_build 2 # run diffoscope on the results TIMEOUT="30m" @@ -197,8 +197,7 @@ fi mkdir -p $BASE/archlinux/$SRCPACKAGE/ cd $TMPDIR/b1/$SRCPACKAGE cp build1.log $BASE/archlinux/$SRCPACKAGE/ -cd $TMPDIR/b2/$SRCPACKAGE -[ ! -f build2.log ] || cp build2.log $BASE/archlinux/$SRCPACKAGE/ +[ ! -f $TMPDIR/b2/$SRCPACKAGE/build2.log ] || cp $TMPDIR/b2/$SRCPACKAGE/build2.log $BASE/archlinux/$SRCPACKAGE/ echo "$(date -u) - $REPRODUCIBLE_URL/archlinux/$SRCPACKAGE/ updated." cd -- cgit v1.2.3-70-g09d2