mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Cannot have empty loop
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user