summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-01-09 11:29:31 +0100
committerHolger Levsen <holger@layer-acht.org>2015-01-09 11:29:31 +0100
commit15adbb1cf61768e3fffb645bfa7a60f514050380 (patch)
tree77f855b58abe0282edebd8c8fda4786f9490a5a5
parent0048dd523d38409955e149cd09915c15aea7efaa (diff)
downloadjenkins.debian.net-15adbb1cf61768e3fffb645bfa7a60f514050380.tar.xz
only create link if target exists
-rwxr-xr-xbin/reproducible_html_graphs.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/reproducible_html_graphs.sh b/bin/reproducible_html_graphs.sh
index 5f61e214..555b35b7 100755
--- a/bin/reproducible_html_graphs.sh
+++ b/bin/reproducible_html_graphs.sh
@@ -252,7 +252,9 @@ echo "$(date) - starting to write $PAGE page."
write_page_header $VIEW "Overview of ${SPOKENTARGET[$VIEW]}"
write_page "<ul><li>Tracked package sets: </li>"
for i in $(seq 1 ${#META_PKGSET[@]}) ; do
- write_page "<li><a href=\"#${META_PKGSET[$i]}\">${META_PKGSET[$i]}</a></li>"
+ if [ -f /var/lib/jenkins/userContent/${TABLE[6]}_${META_PKGSET[$i]}.png ] ; then
+ write_page "<li><a href=\"#${META_PKGSET[$i]}\">${META_PKGSET[$i]}</a></li>"
+ fi
done
write_page "</ul>"
for i in $(seq 1 ${#META_PKGSET[@]}) ; do