mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-12 17:10:31 +02: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' )" ];
|
if [ -z "$( ls -A '$OLD_CONFIG_LOCATION' )" ];
|
||||||
then
|
then
|
||||||
#Empty
|
#Empty
|
||||||
|
rmdir "$OLD_CONFIG_LOCATION"
|
||||||
else
|
else
|
||||||
#Not Empty
|
#Not Empty
|
||||||
bashio::log.info "Moving old configuration settings from $OLD_CONFIG_LOCATION to $CONFIG_LOCATION"
|
bashio::log.info "Moving old configuration settings from $OLD_CONFIG_LOCATION to $CONFIG_LOCATION"
|
||||||
|
|||||||
Reference in New Issue
Block a user