Skip to content

Commit

Permalink
Fix incorrect check for existing files (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck committed Nov 15, 2023
1 parent 9e6a8c1 commit b50b342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aircast/rootfs/etc/s6-overlay/s6-rc.d/init-aircast/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/aircast.xml' \
if ! bashio::fs.file_exists '/config/aircast.xml' \
&& bashio::fs.file_exists '/homeassistant/aircast.xml'; then
mv /homeassistant/aircast.xml /config/aircast.xml \
|| bashio::exit.nok "Failed to migrate Aircast configuration"
Expand Down

0 comments on commit b50b342

Please sign in to comment.