[fix] ynh_app_setting_get and ynh_app_setting_delete don't have a fourth argument.

This commit is contained in:
Maniack Crudelis 2019-03-10 13:22:07 +01:00 committed by GitHub
parent 2d086c400e
commit 945912cc98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,7 +60,7 @@ ynh_app_setting_delete() {
#
ynh_app_setting()
{
ACTION="$1" APP="$2" KEY="$3" VALUE="$4" python - <<EOF
ACTION="$1" APP="$2" KEY="$3" VALUE="${4:-}" python - <<EOF
import os, yaml
app, action = os.environ['APP'], os.environ['ACTION'].lower()
key, value = os.environ['KEY'], os.environ.get('VALUE', None)