test
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
name: VirtualHere Client
|
||||
version: "0.1.251"
|
||||
version: "0.1.252"
|
||||
slug: vhclient
|
||||
description: VirtualHere Client
|
||||
arch:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/command/with-contenv bashio
|
||||
#set -x
|
||||
set -x
|
||||
|
||||
#test=($(bashio::config 'test'))
|
||||
#test+=('one', 'two')
|
||||
@@ -23,7 +23,7 @@ mapfile -t devices < <(/usr/bin/vh_list_devices)
|
||||
for device in "${devices[@]}"; do
|
||||
#options=$(bashio::addon.options)
|
||||
options=$(bashio::api.supervisor GET "/addons/self/options/config")
|
||||
bashio::log.info "Options: ${printf $options | jq .usbdevices[] | contains(.device == ${device})}"
|
||||
bashio::log.info "Options: ${printf $options | jq .usbdevices[] | contains(.device == 'hej')}"
|
||||
|
||||
if [[ ! " ${options}.usbdevices[*] " =~ [[:space:]]${device}[[:space:]] ]]; then
|
||||
|
||||
|
||||
Reference in New Issue
Block a user