Browse Source

fix: [nextcloud] check correctly for existing version

pull/43/head
Valentin Lab 8 months ago
parent
commit
c3cbb6dd26
  1. 2
      nextcloud/actions/upgrade

2
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"

Loading…
Cancel
Save