Explorar el Código

clean_data preserve emptyblocks

master
MEUNIER Thibaud hace 1 año
padre
commit
5d8263bcc1
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. +7
    -0
      scripts/clean_data.sh

+ 7
- 0
scripts/clean_data.sh Ver fichero

@ -10,6 +10,13 @@ do
touch -t $date $DATA_PATH/*/$BLOCK.*
done
# Conserver les blocks vides
for BLOCK in `ls $DATA_PATH/emptybot/*.png`
do
fichier=`basename $BLOCK`
touch -t $date $DATA_PATH/*/$fichier
done
# Effacer ce qui trop vieux
if [ "$#" -eq "0" ]
then

Cargando…
Cancelar
Guardar