test
This commit is contained in:
@@ -15,7 +15,7 @@ if bashio::config.has_value 'usbdevices'; then
|
||||
for usbdevice in "${usbdevices[@]}"; do
|
||||
use=$(echo $usbdevice | jq '. | if .use then true else false end')
|
||||
device=$(echo $usbdevice | jq '.device | tostring')
|
||||
deviceid=$(echo $device | sed 's/.*(\(.*\))/\1/g')
|
||||
deviceid=$(echo $device | sed 's/.*(\(.*\)).*/\1/g')
|
||||
bashio::log.info "Use: ${use} Device: ${device} Deviceid: ${deviceid}"
|
||||
if $use; then
|
||||
bashio::log.info "AUTO USE DEVICE,${deviceid}"
|
||||
|
||||
Reference in New Issue
Block a user