Remove existing folder

This commit is contained in:
Alexandre
2023-02-12 15:07:44 +01:00
committed by GitHub
parent 8215e7978c
commit 3b8b688825

View File

@@ -9,9 +9,12 @@ CUSTOMUI=$(bashio::config 'customUI')
# Install webui
if bashio::config.has_value 'customUI' && [ ! "$CUSTOMUI" = default ] && [ ! "$CUSTOMUI" = custom ]; then
### Variables
# Variables
bashio::log.info "Alternate UI enabled : $CUSTOMUI. If webui don't work, disable this option"
# Clean folders
if [ -d /"$CUSTOMUI" ]; then rm -r /"$CUSTOMUI"; fi
### Download WebUI
case $CUSTOMUI in
"combustion-release")