test
This commit is contained in:
@@ -6,9 +6,10 @@ for device in "${devices[@]}"; do
|
||||
if [ -z $(echo $options | jq --arg device "$device" '.usbdevices[] | select(.device == ($device))') ]; then
|
||||
bashio::log.info "Adding to config: ${device}"
|
||||
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: . }')
|
||||
bashio::log.info "Payload: ${options_payload}"
|
||||
bashio::log.debug "Payload: ${options_payload}"
|
||||
bashio::api.supervisor POST "/addons/self/options" $(echo $options_updated | jq -r '. = { options: . }')
|
||||
fi
|
||||
done
|
||||
bashio::api.supervisor POST "/addons/reload"
|
||||
|
||||
Reference in New Issue
Block a user