test
This commit is contained in:
@@ -26,7 +26,7 @@ for device in "${devices[@]}"; do
|
||||
|
||||
bashio::log.info "Adding to config: ${device}"
|
||||
|
||||
new_options=$(echo $options | jq -r '.usbdevices |= . + [{ device: ($device), use: false }]')
|
||||
new_options=$(echo $options | jq -n --arg value $device '.usbdevices |= . + [{ device: ($value), use: false }]')
|
||||
bashio::log.info "New options: ${new_options}"
|
||||
payload=$(bashio::var.json options "^${new_options}")
|
||||
bashio::api.supervisor POST "/addons/self/options" "${payload}"
|
||||
|
||||
Reference in New Issue
Block a user