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"