From 57590cba8d089861be8beded791ac0403aa6eafc Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 6 Dec 2023 15:19:38 +0100 Subject: [PATCH] Update 91-OCR.sh --- papermerge/rootfs/etc/cont-init.d/91-OCR.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/papermerge/rootfs/etc/cont-init.d/91-OCR.sh b/papermerge/rootfs/etc/cont-init.d/91-OCR.sh index 9a85f1833..f0c4ffa4e 100755 --- a/papermerge/rootfs/etc/cont-init.d/91-OCR.sh +++ b/papermerge/rootfs/etc/cont-init.d/91-OCR.sh @@ -23,7 +23,7 @@ if [ -n "$OCRLANG" ]; then lineStart=$(sed -n '/OCR_LANGUAGES/=' "$CONFIGLOCATION"/papermerge.conf.py) bashio::log.info "OCRLANG variable is set, processing the language packages" 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" echo "OCR_LANGUAGES = {" >> "$CONFIGLOCATION"/papermerge.conf.py