This commit is contained in:
Hans Karlinius
2024-11-25 06:39:29 +01:00
parent ec48b211ea
commit 43d1266041
2 changed files with 3 additions and 2 deletions

View File

@@ -7,5 +7,6 @@ fi
#TEST
#bashio::addon.option 'usbdevices' { 'name': 'one', 'use': false}
my_array=($(bashio::config 'my_array'))
my_array+=({ 'name': 'one', 'use': false}) # Add a new item to the 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[@]}"