This commit is contained in:
Hans Karlinius
2024-11-30 20:32:27 +01:00
parent 75e8988276
commit 84e0cdd653
2 changed files with 2 additions and 2 deletions

View File

@@ -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}"