Skip to content

Commit eac2880

Browse files
committed
avoid unbound variable TESSDATA_PREFIX
set TESSDATA_PREFIX as empty, if not defined in environment to avoid an unbound variable
1 parent 2ef7cc1 commit eac2880

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/training/tesstrain_utils.sh

+3
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ RUN_SHAPE_CLUSTERING=0
5252
EXTRACT_FONT_PROPERTIES=1
5353
WORKSPACE_DIR=$(mktemp -d)
5454

55+
# set TESSDATA_PREFIX as empty, if not defined in environment to avoid an unbound variable
56+
TESSDATA_PREFIX=${TESSDATA_PREFIX:-}
57+
5558
# Logging helper functions.
5659
tlog() {
5760
echo -e $* 2>&1 1>&2 | tee -a ${LOG_FILE}

0 commit comments

Comments
 (0)