Skip to content

Commit

Permalink
Fix incorrect check for existing files (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Nov 17, 2023
1 parent 015f13a commit 9fd3f13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airsonos/rootfs/etc/s6-overlay/s6-rc.d/init-airsonos/run
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 9fd3f13

Please sign in to comment.