mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] helper: setting_set: removing a setting with '-d' option wasn't handled:
- more details here: https://github.com/YunoHost-Apps/pluxml_ynh/pull/24#issuecomment-257302520
This commit is contained in:
parent
2c0c53d06f
commit
403ecf2779
1 changed files with 5 additions and 1 deletions
|
@ -14,7 +14,11 @@ ynh_app_setting_get() {
|
|||
# | arg: key - the setting name to set
|
||||
# | arg: value - the setting value to set
|
||||
ynh_app_setting_set() {
|
||||
sudo yunohost app setting "$1" "$2" -v "$3" --quiet
|
||||
if [ $3 == "-d" ]; then
|
||||
sudo yunohost app setting "$1" "$2" -d --quiet
|
||||
else
|
||||
sudo yunohost app setting "$1" "$2" -v "$3" --quiet
|
||||
fi
|
||||
}
|
||||
|
||||
# Delete an application setting
|
||||
|
|
Loading…
Add table
Reference in a new issue