diff --git a/part2/stages/Find-existing-install b/part2/stages/Find-existing-install index 78a97f7..6d9271e 100755 --- a/part2/stages/Find-existing-install +++ b/part2/stages/Find-existing-install @@ -55,9 +55,7 @@ is_upgradeable_release() RELEASE="$1" for CHECK in ${UPGRADEABLE_RELEASES} ; do - [ "${CHECK}" != "*" ] || return 0 - - if [ "${RELEASE}" = "${CHECK}" ] ; then + if [ -z "${RELEASE%%${CHECK}}" ] ; then echo "Upgrade allowed from detected release: ${RELEASE}" >&2 return 0 fi