Skip to content

Commit

Permalink
Merge pull request #8 from eric-ch/oxt-380
Browse files Browse the repository at this point in the history
Upgradable version globbing
  • Loading branch information
jean-edouard committed Oct 20, 2015
2 parents 8bbe8d3 + 9b2b5a9 commit 103d7d3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions part2/stages/Find-existing-install
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 103d7d3

Please sign in to comment.