Skip to content

Commit a4b03fb

Browse files
committed
Fix warning from shellcheck
shellcheck warning: In /tesseract/src/training/tesstrain_utils.sh line 209: TIMESTAMP=`date +%Y-%m-%d` ^-- SC2006: Use $(..) instead of legacy `..`. Signed-off-by: Stefan Weil <[email protected]>
1 parent bfe58aa commit a4b03fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/training/tesstrain_utils.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ parse_flags() {
198198
fi
199199

200200
# Location where intermediate files will be created.
201-
TIMESTAMP=`date +%Y-%m-%d`
201+
TIMESTAMP=$(date +%Y-%m-%d)
202202
TMP_DIR=$(mktemp -d -t ${LANG_CODE}-${TIMESTAMP}.XXX)
203203
TRAINING_DIR=${TMP_DIR}
204204
# Location of log file for the whole run.

0 commit comments

Comments
 (0)