Skip to content

Commit

Permalink
Merge pull request #2019 from mgeerdsen/bug-fix_unbound_variable_tess…
Browse files Browse the repository at this point in the history
…data_prefix

avoid unbound variable TESSDATA_PREFIX in tesstrain_utils.sh
  • Loading branch information
zdenop authored Oct 22, 2018
2 parents 2ef7cc1 + eac2880 commit f9e33e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/training/tesstrain_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ RUN_SHAPE_CLUSTERING=0
EXTRACT_FONT_PROPERTIES=1
WORKSPACE_DIR=$(mktemp -d)

# set TESSDATA_PREFIX as empty, if not defined in environment to avoid an unbound variable
TESSDATA_PREFIX=${TESSDATA_PREFIX:-}

# Logging helper functions.
tlog() {
echo -e $* 2>&1 1>&2 | tee -a ${LOG_FILE}
Expand Down

0 comments on commit f9e33e3

Please sign in to comment.