mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
new config helpers: use $() instead of backticks
Co-authored-by: Kayou <pierre@kayou.io>
This commit is contained in:
parent
380321a6eb
commit
968cac32d1
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
|||
_ynh_app_config_get() {
|
||||
# From settings
|
||||
local lines
|
||||
lines=`python3 << EOL
|
||||
lines=$(python3 << EOL
|
||||
import toml
|
||||
from collections import OrderedDict
|
||||
with open("../config_panel.toml", "r") as f:
|
||||
|
@ -24,7 +24,7 @@ for panel_name, panel in loaded_toml.items():
|
|||
param.get('bind', 'settings' if param.get('type', 'string') != 'file' else 'null')
|
||||
]))
|
||||
EOL
|
||||
`
|
||||
)
|
||||
for line in $lines
|
||||
do
|
||||
# Split line into short_setting, type and bind
|
||||
|
|
Loading…
Add table
Reference in a new issue