mirror of
https://github.com/hassio-addons/addon-airsonos.git
synced 2025-05-04 19:11:22 +00:00
Fix incorrect check for existing files (#150)
This commit is contained in:
parent
015f13af0e
commit
9fd3f13ada
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,
|
# Migrate add-on data from the Home Assistant config folder,
|
||||||
# to the add-on configuration 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
|
&& bashio::fs.file_exists '/homeassistant/airsonos.xml'; then
|
||||||
mv /homeassistant/airsonos.xml /config/airsonos.xml \
|
mv /homeassistant/airsonos.xml /config/airsonos.xml \
|
||||||
|| bashio::exit.nok "Failed to migrate AirSonos configuration"
|
|| bashio::exit.nok "Failed to migrate AirSonos configuration"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue