rationaliser les hashes et hashes2hashes

This commit is contained in:
2018-12-30 13:01:12 +01:00
parent 37442a9506
commit b3c60a5a76
4 changed files with 48 additions and 59 deletions

View File

@@ -11,18 +11,12 @@ fi
touch $flag
cd $APPS_PATH/methode/$METHODE
for TYPE in CACHE LAST
for BLOCK in `awk '{print $2}' $DATA_PATH/block_list.txt`
do
for BLOCK in `grep $TYPE $DATA_PATH/block_list.txt | awk '{print $2}'`
do
BLOCK_HEIGHT=`grep $BLOCK $DATA_PATH/block_list.txt | awk '{print $3}'`
BNAME=`grep $BLOCK $DATA_PATH/block_list.txt | awk '{print $1}'`
if [ ! -f $DATA_PATH/$METHODE/$BLOCK.png ]
then
php robot.php $BLOCK $((RANDOM % 6))
fi
done
if [ ! -f $DATA_PATH/$METHODE/$BLOCK.png ]
then
php robot.php $BLOCK $((RANDOM % 6))
fi
done
rm -f $flag