mirror of
https://github.com/hassio-addons/addon-airsonos.git
synced 2025-05-04 11:01:31 +00:00
Fix incorrect check for existing files
This commit is contained in:
parent
015f13af0e
commit
2339abbeaa
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ declare latency
|
|||
|
||||
# Migrate add-on data from the Home Assistant config folder,
|
||||
# to the add-on configuration folder.
|
||||
if ! bashio::fs.directory_exists '/config/airsonos.xml' \
|
||||
if ! bashio::fs.file_exists '/config/airsonos.xml' \
|
||||
&& bashio::fs.file_exists '/homeassistant/airsonos.xml'; then
|
||||
mv /homeassistant/airsonos.xml /config/airsonos.xml \
|
||||
|| bashio::exit.nok "Failed to migrate AirSonos configuration"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue