pdfocr icon indicating copy to clipboard operation
pdfocr copied to clipboard

line 85 typo?

Open 291ce4321ac opened this issue 4 years ago • 1 comments

Trying to run the script results in a syntax error right out of the box. Changing the ~ on line 85 to a - fixed it.

291ce4321ac avatar Mar 03 '20 17:03 291ce4321ac

After completing the first task, the script dumped another error during cleanup:

/home/username/bin/pdfocr:57:in 'block in rmdir': undefined method 'in?' for "merged.pdf":String (NoMethodError)
	from /home/username/bin/pdfocr:56:in 'foreach'
	from /home/username/bin/pdfocr:56:in 'rmdir'
	from /home/username/bin/pdfocr:401:in '<main>'

I have no familiarity with ruby, so I'm going to assume that these errors weren't happening for whoever updated this last. Is there an interpreter version dependency or something that I'm missing?

291ce4321ac avatar Mar 03 '20 20:03 291ce4321ac