test
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
name: VirtualHere Client
|
name: VirtualHere Client
|
||||||
version: "0.1.280"
|
version: "0.1.281"
|
||||||
slug: vhclient
|
slug: vhclient
|
||||||
description: VirtualHere Client
|
description: VirtualHere Client
|
||||||
arch:
|
arch:
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ mapfile -t devices < <(/usr/bin/vh_list_devices)
|
|||||||
for device in "${devices[@]}"; do
|
for device in "${devices[@]}"; do
|
||||||
options=$(bashio::api.supervisor GET "/addons/self/options/config")
|
options=$(bashio::api.supervisor GET "/addons/self/options/config")
|
||||||
options_usbdevices_device=$(echo $options | jq --arg device "$device" '.usbdevices[] | select(.device == ($device))')
|
options_usbdevices_device=$(echo $options | jq --arg device "$device" '.usbdevices[] | select(.device == ($device))')
|
||||||
|
bashio::log.info "Options exists: ${options_usbdevices_device}"
|
||||||
if [ -z $options_usbdevices_device ]; then
|
if [ -z $options_usbdevices_device ]; then
|
||||||
bashio::log.info "Adding to config: ${device}"
|
bashio::log.info "Adding to config: ${device}"
|
||||||
options_updated=$(echo $options | jq --arg device "$device" '.usbdevices |= . + [{ device: ($device), use: false }]')
|
options_updated=$(echo $options | jq --arg device "$device" '.usbdevices |= . + [{ device: ($device), use: false }]')
|
||||||
|
|||||||
Reference in New Issue
Block a user