From 4a71c33537d4ffa186bfa6579344dc58743c3877 Mon Sep 17 00:00:00 2001 From: Daniel Quinn Date: Sun, 30 Dec 2018 17:32:17 +0000 Subject: [PATCH] Use [[]] instead of [] in Bash scripts --- scripts/docker-entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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