mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
lint
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
|
# shellcheck shell=bash
|
||||||
|
|
||||||
# create folders
|
# create folders
|
||||||
mkdir -p \
|
mkdir -p \
|
||||||
|
|||||||
@@ -21,7 +21,8 @@ fi
|
|||||||
#################################################################################
|
#################################################################################
|
||||||
|
|
||||||
if bashio::config.true 'Full_Text_Search'; then
|
if bashio::config.true 'Full_Text_Search'; then
|
||||||
if [ $LAUNCHER fulltextsearch:index &>/dev/null ]; then
|
# shellcheck disable=SC1073,SC1072,SC1009
|
||||||
|
if [ eval $LAUNCHER fulltextsearch:index &>/dev/null ]; then
|
||||||
echo "Full Text Search is already working"
|
echo "Full Text Search is already working"
|
||||||
break 2
|
break 2
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ if [[ $($LAUNCHER -V) == *"not installed"* ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Install OCR if requested
|
# Install OCR if requested
|
||||||
if [ $(bashio::config 'OCR') = "true" ]; then
|
if [ "$(bashio::config 'OCR')" = "true" ]; then
|
||||||
# Install package
|
# Install package
|
||||||
if bashio::config.true 'OCR'; then
|
if bashio::config.true 'OCR'; then
|
||||||
|
|
||||||
@@ -38,7 +38,7 @@ if [ $(bashio::config 'OCR') = "true" ]; then
|
|||||||
wget https://github.com/tesseract-ocr/tessdata/raw/main/"$LANG".traineddata &>/dev/null
|
wget https://github.com/tesseract-ocr/tessdata/raw/main/"$LANG".traineddata &>/dev/null
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
elif [ $(bashio::config 'OCR') = "false" ]; then
|
elif [ "$(bashio::config 'OCR')" = "false" ]; then
|
||||||
bashio::log.info 'Removing OCR'
|
bashio::log.info 'Removing OCR'
|
||||||
# Delete package
|
# Delete package
|
||||||
apk del tesseract-ocr.* &>/dev/null || true
|
apk del tesseract-ocr.* &>/dev/null || true
|
||||||
|
|||||||
Reference in New Issue
Block a user