Cannot have empty loop

This commit is contained in:
Alexandre
2024-08-21 16:13:42 +02:00
committed by GitHub
parent 5f90a5bb6a
commit 197a509a29

View File

@@ -19,6 +19,7 @@ if [ -d "$OLD_CONFIG_LOCATION" ];
if [ -z "$( ls -A '$OLD_CONFIG_LOCATION' )" ];
then
#Empty
rmdir "$OLD_CONFIG_LOCATION"
else
#Not Empty
bashio::log.info "Moving old configuration settings from $OLD_CONFIG_LOCATION to $CONFIG_LOCATION"