From cf2fa74a29f9f5dbf99451c97852007f9eb75cae Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 24 Oct 2021 06:28:43 +0200 Subject: [PATCH] Update 91-OCR --- papermerge/rootfs/etc/cont-init.d/91-OCR | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/papermerge/rootfs/etc/cont-init.d/91-OCR b/papermerge/rootfs/etc/cont-init.d/91-OCR index 5e024f858..4ff7b31f1 100644 --- a/papermerge/rootfs/etc/cont-init.d/91-OCR +++ b/papermerge/rootfs/etc/cont-init.d/91-OCR @@ -14,8 +14,7 @@ if [ -n "$OCRLANG" ]; then else echo "package tesseract-ocr-${i} not found in the repository, skipping" fi - sed "$LINE a \"${i}\": \"${i}\"," /data/config/papermerge.conf.py - LINE=$((LINE+1)) + sed -i "$LINE a \ "${i}\": \"${i}\"," /data/config/papermerge.conf.py bashio::log.info "... ${i} installed" done fi