diff --git a/scripts/docker-entrypoint.sh b/scripts/docker-entrypoint.sh index df8df8fcd..76d87ec5b 100644 --- a/scripts/docker-entrypoint.sh +++ b/scripts/docker-entrypoint.sh @@ -75,7 +75,7 @@ install_languages() { pkg="tesseract-ocr-data-$lang" # English is installed by default - if [ "$lang" == "eng" ]; then + if [[ "$lang" == "eng" ]]; then continue fi @@ -95,7 +95,7 @@ if [[ "$1" != "/"* ]]; then initialize # Install additional languages if specified - if [ ! -z "$PAPERLESS_OCR_LANGUAGES" ]; then + if [[ ! -z "$PAPERLESS_OCR_LANGUAGES" ]]; then install_languages "$PAPERLESS_OCR_LANGUAGES" fi