Use [[]] instead of [] in Bash scripts

This commit is contained in:
Daniel Quinn 2018-12-30 17:32:17 +00:00
parent cf36c8467e
commit 4a71c33537

View File

@ -75,7 +75,7 @@ install_languages() {
pkg="tesseract-ocr-data-$lang" pkg="tesseract-ocr-data-$lang"
# English is installed by default # English is installed by default
if [ "$lang" == "eng" ]; then if [[ "$lang" == "eng" ]]; then
continue continue
fi fi
@ -95,7 +95,7 @@ if [[ "$1" != "/"* ]]; then
initialize initialize
# Install additional languages if specified # Install additional languages if specified
if [ ! -z "$PAPERLESS_OCR_LANGUAGES" ]; then if [[ ! -z "$PAPERLESS_OCR_LANGUAGES" ]]; then
install_languages "$PAPERLESS_OCR_LANGUAGES" install_languages "$PAPERLESS_OCR_LANGUAGES"
fi fi