test
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
name: VirtualHere Client
|
name: VirtualHere Client
|
||||||
version: "0.1.285"
|
version: "0.1.286"
|
||||||
slug: vhclient
|
slug: vhclient
|
||||||
description: VirtualHere Client
|
description: VirtualHere Client
|
||||||
arch:
|
arch:
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/command/with-contenv bashio
|
#!/command/with-contenv bashio
|
||||||
set -x
|
#set -x
|
||||||
|
|
||||||
mapfile -t devices < <(/usr/bin/vh_list_devices)
|
mapfile -t devices < <(/usr/bin/vh_list_devices)
|
||||||
for device in "${devices[@]}"; do
|
for device in "${devices[@]}"; do
|
||||||
@@ -9,10 +9,10 @@ for device in "${devices[@]}"; do
|
|||||||
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 }]')
|
||||||
bashio::log.info "Options updated: ${options_updated}"
|
bashio::log.debug "Options updated: ${options_updated}"
|
||||||
options_payload=$(echo $options_updated | jq -r '. = { options: . }')
|
options_payload=$(echo $options_updated | jq -r '. = { options: . }')
|
||||||
bashio::log.info "Payload: ${options_payload}"
|
bashio::log.debug "Payload: ${options_payload}"
|
||||||
bashio::api.supervisor POST "/addons/self/options" ${options_payload}
|
bashio::api.supervisor POST "/addons/self/options" "${options_payload}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
bashio::api.supervisor POST "/addons/reload"
|
bashio::api.supervisor POST "/addons/reload"
|
||||||
|
|||||||
Reference in New Issue
Block a user