From 02153981ee8ceea2b819913876a184898489eb1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Fri, 15 Mar 2024 14:35:31 +0100 Subject: [PATCH] Fix missing variable in upgrade --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index d4c8305..66bfe5b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -44,7 +44,7 @@ if yunohost firewall list | grep -q "\- $port$"; then ynh_exec_warn_less yunohost firewall disallow TCP "$port" fi -if [[ -z "$context" ]]; then +if [[ -z "${context:-}" ]]; then if grep -q "CI_APP" /etc/hosts; then context=official_infra else @@ -53,7 +53,7 @@ if [[ -z "$context" ]]; then ynh_app_setting_set --app="$app" --key="context" --value="$context" fi -if [[ -z "$cluster" ]]; then +if [[ -z "${cluster:-}" ]]; then if incus cluster list >/dev/null 2>&1; then cluster=1 else