summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-06-12 18:45:41 +0200
committerHolger Levsen <holger@layer-acht.org>2015-06-12 18:45:41 +0200
commit9488dd0791c5fe3f09a9d6fb47447bbd4545eebe (patch)
treea66c4961cacab6d91e9019f0b444bd71a55c6b31
parente012114406a33674706901b26e8a2784be9944ea (diff)
downloadjenkins.debian.net-9488dd0791c5fe3f09a9d6fb47447bbd4545eebe.tar.xz
reproducible openwrt: fix loops
-rwxr-xr-xbin/reproducible_openwrt.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/reproducible_openwrt.sh b/bin/reproducible_openwrt.sh
index 8cc25b31..0c6e5b73 100755
--- a/bin/reproducible_openwrt.sh
+++ b/bin/reproducible_openwrt.sh
@@ -179,14 +179,16 @@ save_openwrt_results b2
# create html about toolchain used
#
TOOLCHAIN_HTML=$(mktemp)
-TARGET=$(ls -1d staging_dir/toolchain*|cut -d "-" -f2-)
+TARGET=$(ls -1d staging_dir/toolchain*|cut -d "-" -f2-|xargs echo)
echo "<table><tr><th>Contents of <pre>build_dir/host/</pre></th></tr>" > $TOOLCHAIN_HTML
for i in $(ls -1 build_dir/host/) ; do
echo " <tr><td>$i</td></tr>" >> $TOOLCHAIN_HTML
+done
echo "</table>" >> $TOOLCHAIN_HTML
echo "<table><tr><th>Downloaded software built for <pre>$TARGET</pre></th></tr>" >> $TOOLCHAIN_HTML
for i in $(ls -1 dl/) ; do
echo " <tr><td>$i</td></tr>" >> $TOOLCHAIN_HTML
+done
echo "</table>" >> $TOOLCHAIN_HTML
echo "<table><tr><th>Debian $(cat /etc/debian_version) package on $(dpkg --print-architecture)</th><th>installed version</th></tr>" >> $TOOLCHAIN_HTML
for i in gcc binutils bzip2 flex python perl make findutils grep diff unzip gawk util-linux zlib1g-dev libc6-dev git subversion ; do