diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-01-09 11:29:31 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-01-09 11:29:31 +0100 |
commit | 15adbb1cf61768e3fffb645bfa7a60f514050380 (patch) | |
tree | 77f855b58abe0282edebd8c8fda4786f9490a5a5 | |
parent | 0048dd523d38409955e149cd09915c15aea7efaa (diff) | |
download | jenkins.debian.net-15adbb1cf61768e3fffb645bfa7a60f514050380.tar.xz |
only create link if target exists
-rwxr-xr-x | bin/reproducible_html_graphs.sh | 4 |
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 |