Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
training: Don't terminate after processing 8 fonts or 8 images
tesstrain_utils.sh sets the shell flag -e, so it exits immediately if a command exits with a non-zero status. The following command returns a non-zero status as soon as counter is a multiple of par_factor (par_factor=8, that means as soon as 8 fonts or images are processed): let rem=counter%par_factor The new code fixes this undesired exit. Signed-off-by: Stefan Weil <[email protected]>
- Loading branch information