mtgencode/scripts/crons/process_output.sh
reimannsum 32f6a37c79 Update process_output.sh
Fix issue with files being treated as directories.
2015-11-02 11:10:06 -05:00

19 lines
461 B
Bash

#!/bin/bash
# every 5 min
## */30 * * * * ~/mtgencode/scripts/crons/process_output.sh
cd ~/mtgencode/cards
for folder in $(ls); do
for sub in ${ ls ${folder} };do
if [ ! -d $folder/$sub ]; then
continue
if [ ! -e $folder/$sub/summary.txt ]; then
./scritps/summarize.py -a -v $folder/$sub/output.txt > summary.txt
fi
if [ ! -e $folder/$sub/cards.txt ]; then
.decode.py -v -f $folder/$sub/output.txt $folder/$sub/cards.txt
fi
done
done