test
This commit is contained in:
@@ -13,8 +13,12 @@ if bashio::config.has_value 'usbdevices'; then
|
||||
readarray -t usbdevices < <(echo "$usbdevices_json")
|
||||
bashio::log.info "Devices: ${usbdevices}"
|
||||
for usbdevice in "${usbdevices[@]}"; do
|
||||
gurka=$(echo $usbdevice | jq '.device | tostring')
|
||||
bashio::log.info "Set AUTO USE DEVICE for ${gurka}"
|
||||
use=$(echo $usbdevice | jq '.use | tostring')
|
||||
device=$(echo $usbdevice | jq '.device | tostring')
|
||||
deviceid=$(echo $device | sed 's/.*(\(.*\))/\1/g')
|
||||
|
||||
bashio::log.info "Use: ${use}"
|
||||
bashio::log.info "Set AUTO USE DEVICE for ${deviceid}"
|
||||
|
||||
# sed 's/.*(\(.*\))/\1/g'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user