Commit 542a3291a348f8dad7e3bb08cdc074c539c0000c

Thomas de Grivel 2023-02-15T23:16:57

wip

diff --git a/bin/shpkg_ci b/bin/shpkg_ci
index 0c3c257..29b642a 100755
--- a/bin/shpkg_ci
+++ b/bin/shpkg_ci
@@ -38,6 +38,7 @@ log2html () {
     {
         TITLE="$(echo "$1" | ansi2html)"
         STATUS="$(log_status "$1")"
+        IMG="$(basename "$1" .log).png"
         cat <<EOF
 <!DOCTYPE html>
 <html lang="en">
@@ -48,14 +49,11 @@ log2html () {
     <title>${TITLE}</title>
     <link rel="stylesheet" href="/_assets/app.css">
     <script defer type="text/javascript" src="/_assets/app.js"></script>
-    <link rel="icon" type="image/png" sizes="128x128" href="/_images/status_${STATUS}.128.png">
-    <link rel="icon" type="image/png" sizes="64x64" href="/_images/status_${STATUS}.64.png">
-    <link rel="icon" type="image/png" sizes="32x32" href="/_images/status_${STATUS}.32.png">
-    <link rel="icon" type="image/png" sizes="16x16" href="/_images/status_${STATUS}.16.png">
+    <link rel="icon" type="image/png" sizes="64x64" href="${IMG}">
   </head>
   <body>
     <h1>
-      <img src="/_images/status_${STATUS}.128.png" class="status-${STATUS}"/>
+      <img src="${IMG}" class="status-${STATUS}"/>
       ${TITLE}
     </h1>
     <pre><code>