Browse Source

fix: [nextcloud] check correctly for existing version

pull/42/head
Valentin Lab 7 months ago
parent
commit
6a832b66c4
  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}" info "Target latest version: ${WHITE}${last_available_versions[0]}${NORMAL}"
target=${last_upgradable_versions[0]} target=${last_upgradable_versions[0]}
else else
if [[ "* $target *" != " ${last_available_versions[*]} " ]]; then
if [[ " ${last_available_versions[*]} " != *" $target "* ]]; then
err "Invalid version $target selected, please specify one of:" err "Invalid version $target selected, please specify one of:"
for v in "${last_upgradable_versions[@]}"; do for v in "${last_upgradable_versions[@]}"; do
echo " - $v" echo " - $v"

Loading…
Cancel
Save