From b3c60487184fd6599cece581615d4dc12301ec95 Mon Sep 17 00:00:00 2001 From: Kay0u Date: Fri, 17 Dec 2021 10:56:08 +0100 Subject: [PATCH] fix a warning --- scripts/upgrade | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 689feaa..efc421c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -66,9 +66,7 @@ if [ -z "$final_path" ]; then ynh_app_setting_set --app=$app --key=final_path --value=$final_path fi -is_public=$(ynh_app_setting_get --app=$app --key=is_public) - -if [ -n "$is_public" ]; then +if [ -n "$(ynh_app_setting_get --app=$app --key=is_public)" ]; then ynh_app_setting_delete --app=$app --key=protected_uris # Removing skipped/unprotected_uris under certain conditions, remove the visitors group added during the migration process of 3.7