From f06a4f5ba9825f9855f76ee6e33a174973bfbc3d Mon Sep 17 00:00:00 2001 From: Aurelien Vaillant Date: Thu, 17 Aug 2023 11:33:48 +0200 Subject: [PATCH] Try another conditional test --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 6260a83..8f249d6 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -58,7 +58,7 @@ fi ynh_script_progression --message="Start to init custom error code" # If custom_error_file doesn't exist, create it. We assume it is the default system one. -if [ -z "${custom_error_file}" ]; then +if [ -z "${custom_error_file:-}" ]; then ynh_script_progression --message="Variable not existing, create-it" custom_error_file=$(ynh_app_setting_get --app=$app --key=custom_error_file) fi