mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-23 15:56:05 +02:00
Correct previous configs
This commit is contained in:
@@ -11,6 +11,9 @@ if [ ! -d "$CONFIGLOCATION" ]; then
|
|||||||
CONFIGLOCATION="$(dirname "$CONFIGLOCATION")"
|
CONFIGLOCATION="$(dirname "$CONFIGLOCATION")"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#Correct previous bug
|
||||||
|
sed -i "s|OCRLANG|OCR_LANGUAGES|g" "$CONFIGLOCATION"/papermerge.conf.py
|
||||||
|
|
||||||
languageCount=$(echo "$OCRLANG" | tr -cd ',' | wc -c)
|
languageCount=$(echo "$OCRLANG" | tr -cd ',' | wc -c)
|
||||||
languageCount=$((languageCount+1))
|
languageCount=$((languageCount+1))
|
||||||
bashio::log.info "Configuring ${languageCount} languages"
|
bashio::log.info "Configuring ${languageCount} languages"
|
||||||
|
|||||||
Reference in New Issue
Block a user