mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-23 15:56:05 +02:00
Update 91-OCR.sh
This commit is contained in:
@@ -23,7 +23,7 @@ if [ -n "$OCRLANG" ]; then
|
|||||||
lineStart=$(sed -n '/OCR_LANGUAGES/=' "$CONFIGLOCATION"/papermerge.conf.py)
|
lineStart=$(sed -n '/OCR_LANGUAGES/=' "$CONFIGLOCATION"/papermerge.conf.py)
|
||||||
bashio::log.info "OCRLANG variable is set, processing the language packages"
|
bashio::log.info "OCRLANG variable is set, processing the language packages"
|
||||||
lineEnd=$(sed -n '/}/=' "$CONFIGLOCATION"/papermerge.conf.py)
|
lineEnd=$(sed -n '/}/=' "$CONFIGLOCATION"/papermerge.conf.py)
|
||||||
sed -i "${lineStart},${lineEnd}d" "$CONFIGLOCATION"/papermerge.conf.py
|
sed -i "${lineStart},${lineEnd}d" "$CONFIGLOCATION"/papermerge.conf.py || true
|
||||||
|
|
||||||
bashio::log.info "Writing new configuration"
|
bashio::log.info "Writing new configuration"
|
||||||
echo "OCR_LANGUAGES = {" >> "$CONFIGLOCATION"/papermerge.conf.py
|
echo "OCR_LANGUAGES = {" >> "$CONFIGLOCATION"/papermerge.conf.py
|
||||||
|
|||||||
Reference in New Issue
Block a user