Skip to content
This repository has been archived by the owner on Feb 19, 2021. It is now read-only.

Commit

Permalink
Use [[]] instead of [] in Bash scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
danielquinn committed Dec 30, 2018
1 parent cf36c84 commit 4a71c33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit 4a71c33

Please sign in to comment.