mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-22 16:51:51 +02:00
--quiet
This commit is contained in:
@@ -4,11 +4,11 @@
|
|||||||
if bashio::config.has_value 'OCR'; then
|
if bashio::config.has_value 'OCR'; then
|
||||||
if $(bashio::config 'OCR') = true; then
|
if $(bashio::config 'OCR') = true; then
|
||||||
echo "Installing OCR"
|
echo "Installing OCR"
|
||||||
apk add --no-cache tesseract-ocr || apk add --no-cache tesseract-ocr@community
|
apk add --quiet --no-cache tesseract-ocr || apk add --quiet --no-cache tesseract-ocr@community
|
||||||
# Install additional language if requested
|
# Install additional language if requested
|
||||||
if bashio::config.has_value 'OCRLANG'; then
|
if bashio::config.has_value 'OCRLANG'; then
|
||||||
LANG=$(bashio::config 'OCRLANG')
|
LANG=$(bashio::config 'OCRLANG')
|
||||||
apk add --no-cache tesseract-ocr-data-$LANG || apk add --no-cache tesseract-ocr-data-$LANG@community
|
apk add --quiet --no-cache tesseract-ocr-data-$LANG || apk add --quiet --no-cache tesseract-ocr-data-$LANG@community
|
||||||
bashio::log.info "OCR Language installed : $LANG"
|
bashio::log.info "OCR Language installed : $LANG"
|
||||||
fi
|
fi
|
||||||
elif $(bashio::config 'OCR') = false; then
|
elif $(bashio::config 'OCR') = false; then
|
||||||
|
|||||||
Reference in New Issue
Block a user