Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error due to double find command #84

Open
pbroman opened this issue Feb 7, 2018 · 3 comments
Open

Error due to double find command #84

pbroman opened this issue Feb 7, 2018 · 3 comments

Comments

@pbroman
Copy link
Contributor

pbroman commented Feb 7, 2018

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
Copy link
Member

zuphilip commented Feb 7, 2018

@BFallert or @stweil Can you look into this?

@kba
Copy link
Collaborator

kba commented Mar 20, 2018

Bug is probably in

$location->{'pages'} = [ map {parse($_)} executeCommand($location->{'command'}->{'find-corrections-for-work'}) ];

@kftam1994
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants