15 lines
470 B
Plaintext
Executable File
15 lines
470 B
Plaintext
Executable File
#!/command/with-contenv bashio
|
|
set -x
|
|
|
|
test=($(bashio::config 'test'))
|
|
test+=('one', 'two')
|
|
#bashio::config::update 'test' "${test[@]}"
|
|
bashio::addon.option 'test' ('one', 'two')
|
|
|
|
#TEST
|
|
#bashio::addon.option 'usbdevices' { 'name': 'one', 'use': false}
|
|
#my_array=($(bashio::config 'my_array'))
|
|
#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 'my_array' "${my_array[@]}"
|