added while loop to pict-converter as cron is not working, i'll have to fixe that

This commit is contained in:
Bachir Soussi Chiadmi
2016-07-02 16:03:13 +02:00
parent 8adb390d91
commit e4d45bcf50
+7 -5
View File
@@ -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