diff options
| -rwxr-xr-x | fullocrdir.sh | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/fullocrdir.sh b/fullocrdir.sh index c7b162e..ce58ff0 100755 --- a/fullocrdir.sh +++ b/fullocrdir.sh @@ -16,8 +16,8 @@ test $# -ne 1 && echo "$usage" && exit 1  prereqs="pgconf preprocmulti tesseract"  for i in $prereqs; do  	if ! command -v $i > /dev/null ; then -	        echo "Error: no $i tool found" -	        exit 1 +		echo "Error: no $i tool found" +		exit 1  	fi  done @@ -69,6 +69,6 @@ find "$1" -maxdepth 1 -type f -name '*.jpg' | while read f; do  	done  	test -z "$bestfn" && continue -	hocrfn=`echo "$bestfn" | sed 's/.conf$/.hocr'` +	hocrfn=`echo "$bestfn" | sed 's/.conf$/.hocr/'`  	cp "$hocrfn" "$1/best/" || exit 1  done | 
