Fix Firefly III Data Importer boot failure: initialize JSON_CONFIGURATION_DIR before conditional

Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-27 06:20:03 +00:00
parent 251ce7a3c5
commit aef08de244

View File

@@ -8,6 +8,7 @@ CONFIGSOURCE=$(bashio::config "CONFIG_LOCATION")
# CONFIG IMPORT #
#################
JSON_CONFIGURATION_DIR=""
if [ "$(ls -A "$CONFIGSOURCE/configurations")" ]; then
bashio::log.info "Configurations were found in $CONFIGSOURCE/configurations, they will be loaded."
JSON_CONFIGURATION_DIR="$CONFIGSOURCE/configurations"