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