From 91ba9a0cfd06b36f952312c5393b5cc4b11fd1e2 Mon Sep 17 00:00:00 2001 From: Kay0u Date: Mon, 3 Jan 2022 11:23:43 +0100 Subject: [PATCH] fix the is_public warning --- scripts/upgrade | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index f08e38e..a8aa7eb 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -59,9 +59,8 @@ ynh_abort_if_errors #================================================= ynh_script_progression --message="Ensuring downward compatibility..." -is_public=$(ynh_app_setting_get --app=$app --key=is_public) # Remove 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=is_public fi