test
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
bashio::log.info "Adding selected devices"
|
||||
|
||||
options=$(bashio::api.supervisor GET "/addons/self/options/config")
|
||||
for device in "${options}.usbdevices[@]}"; do
|
||||
bashio::log.info "Set AUTO USE DEVICE ${device}"
|
||||
if bashio::config.has_value 'usbdevices'; then
|
||||
usbdevices=($(bashio::config 'usbdevices'))
|
||||
#options=$(bashio::api.supervisor GET "/addons/self/options/config")
|
||||
for device in "${usbdevices}"; do
|
||||
bashio::log.info "Set AUTO USE DEVICE ${device}"
|
||||
|
||||
done
|
||||
done
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user