Procházet zdrojové kódy

Merge branch 'server' of https://g-u-i.me/gogs/bachir/hehe-rover into server

Bachir Soussi Chiadmi před 8 roky
rodič
revize
bfd8b462c4
1 změnil soubory, kde provedl 7 přidání a 5 odebrání
  1. 7 5
      www/pict-converter.sh

+ 7 - 5
www/pict-converter.sh

@@ -99,8 +99,10 @@ function convert {
 }
 
 
-
-day=$(date +"%Y-%m-%d")
-logfile="logs/convert-$day.log"
-touch $logfile
-convert | tee -a $logfile
+while true; do
+    day=$(date +"%Y-%m-%d")
+    logfile="logs/convert-$day.log"
+    touch $logfile
+    convert | tee -a $logfile
+    sleep 10m
+done