mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Use [[]] instead of [] in Bash scripts
This commit is contained in:
parent
cf36c8467e
commit
4a71c33537
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user