UB-Mannheim / ocr-gt-tools

Ergonomic line-by-line transcription of scanned text.
GNU Affero General Public License v3.0
47 stars 11 forks source link

Error due to double find command #84

Open pbroman opened 6 years ago

pbroman commented 6 years ago

Testing ocr-gt-tools under apache with I ran into following error loading a jpg file:

'find /var/www/ocr-gt/example/ocr-corrections/digi/445442158 -type f -name comment-page.txt find /var/www/ocr-gt/example/ocr-corrections/digi/445442158 -type f -name comment-page.txt' returned non-zero exit code '256': paths must precede expression: find

Obviously, the find-corrections-for-work command is multipled by the execution in the perl script. I havn't been able to find out why, which is sad, because I really appreciate ocr-fileformat and would very much lilke to test ocr-gt-tools. :)

zuphilip commented 6 years ago

@BFallert or @stweil Can you look into this?

kba commented 6 years ago

Bug is probably in https://github.com/UB-Mannheim/ocr-gt-tools/blob/1f7191d752654ac79bdba9e5f98dca813ffd169e/ocr-gt-tools.cgi#L323

kftam1994 commented 6 years ago

The 'find' command in 'find-corrections-for-work' runs twice so it returns error. How the perl script can be changed to avoid running twice?