16 lines
531 B
Plaintext
Executable File
16 lines
531 B
Plaintext
Executable File
#!/command/with-contenv bashio
|
|
|
|
if bashio::config.has_value 'clientid'; then
|
|
bashio::log.info "Set ClientId"
|
|
fi
|
|
|
|
#TEST
|
|
#bashio::addon.option 'usbdevices' { 'name': 'one', 'use': false}
|
|
my_array=($(bashio::config 'usbdevices'))
|
|
my_array+=('one') # Add a new item to the array
|
|
#my_array+=({ 'name': 'one', 'use': false}) # Add a new item to the array
|
|
#bashio::config::update 'usbdevices' "${my_array[@]}"
|
|
bashio::log.info "${my_array[@]}"
|
|
bashio::config::update 'usbdevices' "${my_array[@]}"
|
|
#bashio::log.info "${my_array[@]}"
|