Skip to content

Commit

Permalink
avoid unbound variable TESSDATA_PREFIX
Browse files Browse the repository at this point in the history
set TESSDATA_PREFIX as empty, if not defined in environment to avoid an
unbound variable
  • Loading branch information
mgeerdsen committed Oct 22, 2018
1 parent 2ef7cc1 commit eac2880
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/training/tesstrain_utils.sh
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 eac2880

Please sign in to comment.