nixos: fix hdhr autodiscovery when host unset
This commit is contained in:
parent
05af210e60
commit
f62101f754
1 changed files with 4 additions and 2 deletions
|
|
@ -200,9 +200,11 @@ in
|
|||
exit 2
|
||||
fi
|
||||
|
||||
base="${lib.escapeShellArg fixedHost}"
|
||||
# Note: don't wrap lib.escapeShellArg in double-quotes, otherwise empty strings
|
||||
# become a literal two-quote token and break discovery.
|
||||
base=${lib.escapeShellArg fixedHost}
|
||||
if [[ -z "$base" ]]; then
|
||||
dev_id="${lib.escapeShellArg deviceId}"
|
||||
dev_id=${lib.escapeShellArg deviceId}
|
||||
if [[ -z "$dev_id" ]]; then
|
||||
echo "ec-node: missing hdhomerun.host and hdhomerun.deviceId" >&2
|
||||
exit 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue