test
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#!/command/with-contenv bashio
|
||||
set -x
|
||||
#set -x
|
||||
|
||||
#test=($(bashio::config 'test'))
|
||||
#test+=('one', 'two')
|
||||
@@ -18,10 +18,11 @@ set -x
|
||||
#bashio::log.info "${list1}"
|
||||
#bashio::log.info "${list2}"
|
||||
|
||||
options=$(bashio::addon.options)
|
||||
#mapfile -t devices < <(/usr/bin/vhclient -t LIST)
|
||||
mapfile -t devices < <(/usr/bin/vh_list_devices)
|
||||
for device in "${devices[@]}"; do
|
||||
options=$(bashio::addon.options)
|
||||
bashio::log.info "Options: ${options}"
|
||||
if [[ ! " ${options}.usbdevices[*] " =~ [[:space:]]${device}[[:space:]] ]]; then
|
||||
|
||||
bashio::log.info "Adding to config: ${device}"
|
||||
|
||||
Reference in New Issue
Block a user