mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
lint
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
# create folders
|
||||
mkdir -p \
|
||||
|
||||
@@ -21,7 +21,8 @@ fi
|
||||
#################################################################################
|
||||
|
||||
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"
|
||||
break 2
|
||||
fi
|
||||
|
||||
@@ -13,7 +13,7 @@ if [[ $($LAUNCHER -V) == *"not installed"* ]]; then
|
||||
fi
|
||||
|
||||
# Install OCR if requested
|
||||
if [ $(bashio::config 'OCR') = "true" ]; then
|
||||
if [ "$(bashio::config 'OCR')" = "true" ]; then
|
||||
# Install package
|
||||
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
|
||||
done
|
||||
fi
|
||||
elif [ $(bashio::config 'OCR') = "false" ]; then
|
||||
elif [ "$(bashio::config 'OCR')" = "false" ]; then
|
||||
bashio::log.info 'Removing OCR'
|
||||
# Delete package
|
||||
apk del tesseract-ocr.* &>/dev/null || true
|
||||
|
||||
Reference in New Issue
Block a user