[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:
Moul 2016-10-31 15:05:58 +01:00
parent 2c0c53d06f
commit 403ecf2779

View file

@ -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