test
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
name: VirtualHere Client
|
||||
version: "0.1.212"
|
||||
version: "0.1.213"
|
||||
slug: vhclient
|
||||
description: VirtualHere Client
|
||||
arch:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/command/with-contenv bashio
|
||||
|
||||
sleep 5s
|
||||
#sleep 5s
|
||||
|
||||
if bashio::config.has_value 'autofind'; then
|
||||
autofind=($(bashio::config 'autofind'))
|
||||
|
||||
@@ -13,14 +13,15 @@ set -x
|
||||
#my_array+=({ 'name': 'one', 'use': false}) # Add a new item to the array
|
||||
#bashio::config::update 'my_array' "${my_array[@]}"
|
||||
|
||||
list1=$(/usr/bin/vhclient -t LIST)
|
||||
#list1=$(/usr/bin/vhclient -t LIST)
|
||||
#list2=$(eval 'grep "--" <<< "$list1"')
|
||||
bashio::log.info "${list1}"
|
||||
#bashio::log.info "${list1}"
|
||||
#bashio::log.info "${list2}"
|
||||
|
||||
options=$(bashio::addon.options)
|
||||
mapfile -t devices < <(/usr/bin/vhclient -t LIST)
|
||||
for device in "${devices[@]}"; do
|
||||
if [[ "$device" =~ .*"-->".* ]]; then
|
||||
if [[ "$device" =~ .*-->.* ]]; then
|
||||
bashio::log.info "${device}"
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user