Skip to content

Commit 9fd3f13

Browse files
authored
Fix incorrect check for existing files (#150)
1 parent 015f13a commit 9fd3f13

File tree

1 file changed

+1
-1
lines changed
  • airsonos/rootfs/etc/s6-overlay/s6-rc.d/init-airsonos

1 file changed

+1
-1
lines changed

airsonos/rootfs/etc/s6-overlay/s6-rc.d/init-airsonos/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ declare latency
88

99
# Migrate add-on data from the Home Assistant config folder,
1010
# to the add-on configuration folder.
11-
if ! bashio::fs.directory_exists '/config/airsonos.xml' \
11+
if ! bashio::fs.file_exists '/config/airsonos.xml' \
1212
&& bashio::fs.file_exists '/homeassistant/airsonos.xml'; then
1313
mv /homeassistant/airsonos.xml /config/airsonos.xml \
1414
|| bashio::exit.nok "Failed to migrate AirSonos configuration"

0 commit comments

Comments
 (0)