This commit is contained in:
Alexandre
2022-02-18 14:44:39 +01:00
parent 4bc5b57396
commit 3a7f68c7d3
6 changed files with 30 additions and 28 deletions

View File

@@ -11,7 +11,7 @@ if bashio::config.has_value 'theme'; then
bashio::log.info "Alternate theme enabled : $CUSTOMUI. If webui don't work, disable this option"
### Download WebUI
case $CUSTOMUI in
case "$CUSTOMUI" in
"comixology2")
curl -s -S -J -L -o /data/release.zip https://github.com/scooterpsu/Comixology_Ubooquity_2/releases/download/v3.4/comixology2.zip >/dev/null &&
unzip -o -q /data/release.zip -d /config/addons_config/ubooquity/themes/
@@ -29,6 +29,6 @@ if bashio::config.has_value 'theme'; then
rm /data/release.zip || true
### Set preference
jq --arg variable $CUSTOMUI '.theme = $variable' /config/addons_config/ubooquity/preferences.json | sponge /config/addons_config/ubooquity/preferences.json
jq --arg variable "$CUSTOMUI" '.theme = $variable' /config/addons_config/ubooquity/preferences.json | sponge /config/addons_config/ubooquity/preferences.json
fi