From b2b1f359b5a4c7aa48ad2e28269aceac78dd32c5 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 3 Apr 2022 13:48:54 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 932f37f..25c9a8e 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -59,15 +59,11 @@ if [ -z "$final_path" ]; then ynh_app_setting_set --app=$app --key=final_path --value=$final_path fi -# If lang exist, remove it -if [ -v "$lang" ]; then - ynh_app_setting_delete --app=$app --key=$lang -fi - # If language doesn't exist, create it if [ -z "$language" ]; then language="en" ynh_app_setting_set --app=$app --key=language --value=$language + ynh_app_setting_delete --app=$app --key=$lang fi case "$language" in