Skip to content

Commit

Permalink
Another minor optimisation.
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim2266 committed Jun 20, 2017
1 parent 809a88c commit 1dbbdf6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ocr
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ then
elif [[ ! -d "$WORK_DIR" ]] # create if does not exists
then
mkdir "$WORK_DIR" || exit 1
elif [[ -n $(ls -A "$WORK_DIR") ]] # clear if not empty
then
else # clear if not empty
find "$WORK_DIR" -maxdepth 1 -type f \
\( -name \*.tif -o -name \*.tif.err -o -name \*.tif.txt -o -name ddjvu-error \) \
-delete
Expand Down

0 comments on commit 1dbbdf6

Please sign in to comment.