This commit is contained in:
Hans Karlinius
2024-11-29 04:12:56 +01:00
parent c545a8716f
commit 494df18bc8
2 changed files with 10 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
name: VirtualHere Client
version: "0.1.210"
version: "0.1.211"
slug: vhclient
description: VirtualHere Client
arch:

View File

@@ -14,9 +14,16 @@ set -x
#bashio::config::update 'my_array' "${my_array[@]}"
list1=$(/usr/bin/vhclient -t LIST)
list2=$(eval 'grep "--" <<< "$list1"')
#list2=$(eval 'grep "--" <<< "$list1"')
bashio::log.info "${list1}"
bashio::log.info "${list2}"
#bashio::log.info "${list2}"
mapfile -t devices < <(/usr/bin/vhclient -t LIST)
for device in "${devices[@]}"; do
bashio::log.info "${device}"
done
#options=$(bashio::addon.options)
#new_options=$(echo $options | jq .usbdevices += [{ device: 'ONE', use: false }])