From c3cbb6dd26bd3301c825b04d6c238af20dffd851 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Tue, 16 Apr 2024 20:47:01 +0200 Subject: [PATCH] fix: [nextcloud] check correctly for existing version --- nextcloud/actions/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nextcloud/actions/upgrade b/nextcloud/actions/upgrade index 2ef408e..ca5b98f 100755 --- a/nextcloud/actions/upgrade +++ b/nextcloud/actions/upgrade @@ -129,7 +129,7 @@ if [ -z "$target" ]; then info "Target latest version: ${WHITE}${last_available_versions[0]}${NORMAL}" target=${last_upgradable_versions[0]} else - if [[ "* $target *" != " ${last_available_versions[*]} " ]]; then + if [[ " ${last_available_versions[*]} " != *" $target "* ]]; then err "Invalid version $target selected, please specify one of:" for v in "${last_upgradable_versions[@]}"; do echo " - $v"