2021-05-23 20:13:28 +00:00
|
|
|
@(
|
|
|
|
$(
|
2021-07-16 13:04:24 +00:00
|
|
|
@($HAConfigPath,'/srv/ha/current/homeassistant','/usr/share/hassio/homeassistant') |
|
|
|
|
Where-Object { $_ } |
|
|
|
|
Where-Object { Test-Path -Type Container $_ } |
|
|
|
|
Select-Object -First 1
|
|
|
|
), $HAConfigPath, '/srv/ha/current/homeassistant'
|
|
|
|
) | Where-Object { $_ } |
|
|
|
|
Select-Object -First 1 -OutVariable HAConfigPath
|