Commit a4813656cf4544d6671651e6c9c683eaa3398dbc

Thomas de Grivel 2023-02-14T14:11:21

logs2html

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/bin/shpkg_ci b/bin/shpkg_ci
index a43a674..aaa5ca7 100755
--- a/bin/shpkg_ci
+++ b/bin/shpkg_ci
@@ -11,7 +11,7 @@ shpkg_lock shpkg_ci.lock
 logs2html () (
     cd ~/"www/log/${SHPKG_OS}/txt"
     for F in "${SHPKG_REPO}".*.log; do
-        if [ "$F" -nt "../html/$F.html" ]; then
+        if ! [ -f "../html/$F.html" ] || [ "$F" -nt "../html/$F.html" ]; then
             verbose 1 ansi2html "$F"
         fi
     done