From dcb63d8768a5e187025de338fa99cc10f44469ba Mon Sep 17 00:00:00 2001 From: Davide Madrisan Date: Thu, 29 Jun 2023 14:36:10 +0200 Subject: [PATCH] Fix dash syntax error in libpostal_data Fix the syntax error reported by dash: ./src/libpostal_data: 39: [: ==: unexpected operatora when the variable DATAMODEL is empty. Signed-off-by: Davide Madrisan --- src/libpostal_data.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libpostal_data.in b/src/libpostal_data.in index 8c18270f..a749a623 100755 --- a/src/libpostal_data.in +++ b/src/libpostal_data.in @@ -36,7 +36,7 @@ LIBPOSTAL_LANG_CLASS_FILE="language_classifier.tar.gz" LIBPOSTAL_BASE_URL="https://github.com/$LIBPOSTAL_REPO_NAME/releases/download" -if [ $DATAMODEL == "senzing" ]; then +if [ "$DATAMODEL" = "senzing" ]; then LIBPOSTAL_DATA_FILE_CHUNKS=1 LIBPOSTAL_PARSER_MODEL_CHUNKS=1 LIBPOSTAL_LANG_CLASS_MODEL_CHUNKS=1